Merge pull request #1 from leklund/master

define an initializer rather than using config.before_initialize
Rails 4 compatibility

The ConnectionSpecification class is no longer part of
ActiveRecord::Base and is now in the ActiveRecord::ConectionAdapters
module.