Extend API with repository hooks and project permissions

Now possible to:
- get repository hook
- configure repository hooks
- enable/disable repository hooks
- grant/revoke group permission on project
- grant/revoke user permission on project
Fix formatting, equals, hashCode, toString and readme