Bump dependencies
Fix flaky tests for db query error handling
Replace Cakefile with separate script files

cake's options format is annoying; optimist is
easier to use.
Add .travis.yml file