Add memoize for main_template view call to reduce two hits to one
Add BBB hooks for main_template 'main' and 'content' macros