moved page header and footer to slots, changed base view to assign convenience shortcuts and set template vars for the master template with locale info, encoding, base href etc, use new shortcuts in some views, cleanup, refs #915