reworked tpl's to move around messages/action tabs/etc

implemented a new context system to output body classes to appropriate sections