Added _union(), _getVariables(), and _getDependencies()

Allows users to get dependencies from given templates.  NOTE: this does
not yet work for 'evaluate' templates, as this would involve running
the code through a full JS parser to extract dependencies