add more factory as service via the services.yml configuration

We have more services available by default that are configure via the service container so it make this more flexible and more standard.

Also I had a change the was suppose to be in pullrequest #60 but it seem's that it wasn't done properly (the pullrequest or the merge I don't know) and the commit got lost...
You forgot one new line at the end of the file