Create pidfile /var/run for upstart scripts

I've added a line to the upstart template which stores the pid of the process created to /var/run/<%=name%>-<%=num%>.pid. This makes it more viable to monitor the upstart scripts created with a tool like Monit.