added http method restriction to homepage route
added gorilla's logging handler to handle function of router