Support JSON serialization of ActiveRecord attributes

@reissbaker for being my partner in crime
@schleyfox @LogicWolfe @jeffyip for knowing things about Rails