working refactor of core routing/route/context modules
rewrite index.js to rely on new modularized router/route/context