an overhaul of the base template, so we can inherit from the default ckan base template instead of completely overriding it