Moved the route verb binding out to separate functions; moved more variables into common module area

Signed-off-by: license2e <ilya@shindyapin.com>