Copy stuff from built-in util & underscore to utils.js
Initial implementation of router middleware