[COOK-4280] Upstart script properly waits until the server is started.

As described in this issue: https://tickets.opscode.com/browse/COOK-4280 the upstart script was wrongly emitting the `started` event.

Now the script behaves like the vendor init.d script and uses a custom pid file, then waits until the server is started.