Prosody service

Here is my first approach to pack prosody as a service. Feel free to add some feedback :)
You could shorten/inline this function by using `optionalString` instead.