Split hooks into static and dynamic hooks

The reason for the change is that we have contexts where a plugin
needs access to a full `hoodie` instance, like a web hook that
wants to record the HTTP body into CouchDB. I call these dynamic
hooks, but I am happy to bikeshed this.

Another type of hook are ones that do not depend on a full `hoodie`
instance, for example ones, that we use to augment the hoodieServer
before starting it up. I call them static hooks, again, happy to
bikeshed.

Another difference between the hooks is that they are initialised
at different places in the lifecycle of hoodie-server:

- static hooks are initialised when plugins are read but before
  the Hapi server gets started.
- dunamic hooks are initialised, after everything is started,
  so they can expect a fully running Hoodie to do their work.

In order to make this easy to understand for plugin authors, I
changed the place for defining hooks from the top level
`hooks.js` to a top level directory `hooks/` with two files,
`static.js` and `dynamic.js`. Either file and the hooks
directory are optional.

This isn’t as pretty as I had hoped it could be, but I don’t see
a way around this, and it is still not too hard to understand.

See hoodiehq/hoodie-plugin-debug-email for an exmaple plugin.

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
[lint] minor

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
allow plugins to handle HTTP HEAD requests

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
Replaced node-http-proxy with hapi server
allow custom CouchDB configuration

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
[plugins] allow calling of hooks on a per-plugin basis

Previously, when sending a request to a `server.api.plugin-request`
hook (think webhook), instead of calling the handler function for
the plugin specified in the URL, we called *all* handler functions
for all plugins for this hook.

This fixes that and only calls the hook that was requested.

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
[fix] lint

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:
http://go.hood.ie/thehoodiefirm
Release 0.9.20
upgrade hoodie-plugins-manager
release 0.9.21
Removed http-proxy from dependencies as it is no longer being used
Merge branch 'master' of github.com:wrangr/hoodie-server