Introduce Dependencies on Text.js and Underscore

This trims down the code significantly, and lets us take advantage of the regular maintenance done on these popular libraries. I believe this fixes every open issue in requirejs-tpl.