Create service definition and add tests

I created a service definition in a XML file (according to best practices) and added some simple tests for it.

When using this method, you get more flexibility for configuration and you don't have to create your own definition classes (in the extension loading).