Add template variables to dash PUT/POST api

* Tests.
* Added in dogshell and dogapi.
* Also fixed a bug in dogshell where you couldn't pass a list of graphs directly (not from stdin)