Added lifecycle hooks for dev server

The new lifecycle hooks allow to execute some custom command on start/stop of the dev server. It can be used to start a background asset processor (e.g. Grunt, Brunch) to update the scripts/stylesheets.