removes appengine dependency for autosite by allowing any template.FuncMap to be passed in