add initial template parser module
add nice little TemplateReference class for convenience