modulize upstart and make nodejs generic