Deprecate #connection in favour of accessing it via the class

see rails/rails#9371
Merge pull request #297 from yahonda/deprecate_connection

Deprecate #connection in favour of accessing it via the class