Move setting up and managing the service to its own class.

Add examples to tests on using the module