Dynamic Policies in Internet of Things: Enforcement and Synchronization