Added option to configure repository factory service

In a similar fashion as #176, this allows you to assign a custom repository factory:

````yaml
doctrine:
    orm:
        repository_factory: repository_factory
````

I noticed my editor removed some unnecessary whitespace, I'm not sure if this is a problem for this pull request.