Add Travis for MRI 1.8/1.9 and Postgres/MySQL

* Fix tests compatibility with MRI 1.8 
  * use hashrockets everywhere
  * use only compatible gem versions
  * add fallback when `RUBY_VERSION < 1.9`
* Change `spec_helper.rb` to be able to run with Travis
* Fix precision for dates, logger and a typo for failing tests