Add hooks directory, with HTTP error hooks
Make use of hooks, proper permissions checking