Rabl caching

This improves performance of the template generation of the JSON, would need to measure the exact gain and see if the memory consumption is worth the speed bump.

On my VM it cuts around half the render time.