Drop BBB browser layer; Refactor @@main_template macros to support Chameleon