fixiing section fronts layout selection
adding rewrite rules for categories while removing all default category rules
fixing the meta-data key, which ends in _template, not _layout