updates to Gemfile (changes for JRuby) and a small change to the model RESTful API
(converting the returned list of model templates to an array of hashes, then using
that array of hashes to construct the response)