various small fixes
various fixes, switch out priam upstart for init.d script