[WIP] Rails 4.1 compatibility

* only require HABTM if Rails < 4.1
* the ActiveRecord ConnectionSpecification Resolver has changed its initialization process
adjust specs to now use previously-deprecated and now-removed finder methods