Fixes #3 Added functions minify and compile

Added functions for compiling/cacheing/minifying template data for
dumping to the DOM