Small refactor of the URL replacement code #14
I ran some speed tests on the method currently used by Amplify to replace URL parameters with passed in data. I found using a regular expression replace with a callback was faster than redefining RegExp's for each item in a data structure.
You can see my perf tests here: http://jsperf.com/quick-templates-compared/2
These two commits handle the change to the faster method.