Support for graphite templates

This PR adds support for the template parameter of the render api (e. g. what you define in graphTemplates.conf of you graphite installation).

Naming the parameter `:template` didn't work, so I named it `:theme` instead.