added activerecord support

@warhammerkid Please review and merge __AFTER__ merging https://github.com/rubyamf/rubyamf/pull/21.

Adds support for ActiveRecord >= 3.2.