Use begin_transaction if connection responds to it

Supports ActiveRecord-4.0.0.beta1
Merge pull request #189 from dchelimsky/fix-188

Use begin_transaction if connection responds to it (AR 4)