Added daemon support for server. Also added auto launch of server if not running