Use ActiveSupport::JSON for dumping json in render

This relieves us of any extra work that comes with handling JSON engines, etc. and ensures that rendering of json works without extra requires.

Closed #1023 and #1024,