Updated Caching + IE8 and IE7 support

Caching is now smarter. If a template has been requested but not yet
loaded, any further requests are pushed into a queue, and processed when
the template has been loaded.

Tweaked code to use jQuery trim to support IE8 and IE7