Service installation

This pull request adds support for service installation. It has been tested on linux with upstart, system-v and systemd, but should support darwin and windows.