Fixing $ conflict with pages using prototype.
Fixing tests for attachment_definitions and jcrop_api in js
Mongoid support