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 is cuts around half the render time.