added rest3d-post-receive hook
addjusted hooks and pm2 control