exec serv from sbin, added service struct and spawn function and call main_loop from main, minor fixups