Clean up gemspec-related code

Rakefile, gemspec. Make all tests run with `$ rake`.