Replace loader, not onLoad
Add ability to clear middleware
Allow loaded template name to be updated
Add default cache-reading middleware
Add compatibility for legacy onLoad