Delegate connection to class

Rails 4 has deprecated the instance connection method, this adds a delegation method back to skip the deprecation warning

This fixes #180