Use jBuilder for JSON API, upgrade gems to newest versions

Overiding as_json can lead to strange and unexpected results
(like exposing fields that should be a secret). Since
the real task is templating, use a json templating lib