Add Gemfile for use with bundler. Simplify Rakefile and add test_online, test_offline tasks. Update README re: unit tests.