Support ruby 1.8

* Convert arrays returned by Hash#select to Hash with helper method
* Update TMF tests to not use :!=
* Update TMF lib to support plain assertions
Ignore .ruby-version and .ruby-gemset in git
Exit with proper status in rake