Delegate connection to class

Rails 4 has deprecated the instance connection method, this adds a delegation method back to skip the deprecation warning
Merge pull request #184 from lexrupy/rails4

Delegate connection to class