Split hook script into two.
Adding logic for 'build' hook.
Tests and bug fix for build hook.
Allowing errors during sha validation.
Merge pull request #80 from rhyolight/hook-fix

Adding "build" hook in addition to "push" hook