Fix specs and deprecation warnings.
Use jdbc adapters that are compatible with AR 4.0
Merge remote-tracking branch 'ugisozols/fix_specs' into rails4