fixed a bug in templates, introduced categories, added default setup script onload, moved home.tpl code over to category, created hierachies