Create router.js

Does the routing/function mapping for incoming requests