ActiveRecord 4 support

- Adds support for modified ActiveRecord::ConnectionAdapters::TableDefinition#new. Was changed in AR 4.
- Adds NullDBAdapter#select_values. Was added in AR 4.
- Changes NullDBAdapter#select return value to an EmptyResult. Removes deprecation warnings.
- Retains support for ActiveRecord 2 and 3