Updating loader pluginto support requireJS optimizer

Allows templates to be inlined into an optimized script using the r.js optimizer (http://requirejs.org/docs/optimization.html).