Added handler and router

Following tutorial in http://www.nodebeginner.org/