use express 4 router

Refer to http://expressjs.com/4x/api.html#router and http://scotch.io/tutorials/javascript/learn-to-use-the-new-router-in-expressjs-4