Various packaging cleanups.

* Add license file (MIT).
* Pull gemspec out into dedicated file.
* Move version constant into separate file for use in gemspec.
* Update Rakefile, to use RDoc::Task, Gem::PackageTask etc as they
  were removed from rake. Switch to using SimpleCov for coverage.
Avoid constant redefinition of TEST_DIR in test_mime.rb.