= routing: transform require/hrequire

transforming require and hrequire to use filter and hfilter, remove duplicated code