various fixes
/meta/routes
refactored route building and setting
improved config route building
fixed nil dereference