Added async and restify.
Implemented automatic registration of actions and running of hooks before
and after.