used proper logging module instead of print. dispatched template now has additional default data to be used in jade (GET, POST, REQ, COOKIES)