Added some helper functions and tweaked the logs/post-receive