Moved work to Rakefile.
Simplified .travis.yml.
Added lock file for --deployment tests.