make it possible to configure the ClassMetadataFactory class name, RepositoryFactory and default repository class name

new feature, should go into 1.1

fixes https://github.com/doctrine/phpcr-odm/issues/366