Merge pull request #235 from anatoliychakkaev/master

Rework hooks API
Merge branch 'master' of github1602:1602/jugglingdb
Rewrite validations in mocha
Switch to mocha testing in travis