Code cleanup
Refactored githook endpoint
Added template hooks for local repo
Added template hooks for remote repo