Make Singularity embeddable into a bigger service.

Adds also an example on how to do it with a skeleton class.

There is probably some more documentation required; I will write some once this has really gelled.