adding structure for ActiveRecord additions.
copying over basic functionality from your_platform.
testing against Rails 3.2 and 4 with travis.