using require('url') to parse request url (fixes bug when routing urls with querystrings)