Changes towards v2.
Finished service and tests.
Added hoster and a test client.
Minor fixes.
Added signal handling.