Update hooks to rely only on API and ENV vars

This change makes the hooks very slim, having almost no logic
themselves. Permissions are checked via the internal hooks API, custom
hooks paths are taken from GITORIOUS_CUSTOM_* env vars.

This also simplifies deployment - no need for ruby/chruby on the host machine,
allows usage of Docker containers running the app/API.