Implemented DynamicConfig for LayeredConfig.

MapConfig no longer holds the lock when publishing events.