Fix cherry-picking mistake
Fix handling of nonexistent dirs.
Fix DocBlocks
Added a ConfigCacheFactory implementation to FrameworkBundle.

A new service "config.cache_factory" provides an implementation of the ConfigCacheFactoryInterface and is used to configure the router and translator service.

Custom resource validators can be tagged as "config.resource_validator". They will be used in debug mode only, unless the tag adds a 'debugOnly="false"' attribute.