fixes #156 - Allow server to run as a service