Bug Fixes/versioning refactor

1.) Fixed a bug that prevented proper implementation of template-side
<that> tags
2.) updated and corrected the script version in all files that contain
version information
3.) implemented functionality that sets the scripts internal version
based on the contents of version.txt, rather than hard-coding it