fix json parsing for query proxy and add support for serving up dashboard templates