Fix cookieSession to work with FQDN

Changes the cookieSession to check the path instead of the url, which doesn't work with FQDN :( 

I created a new variable on req for storing the originalPath (along with the originalUrl) that can be used in middleware without having to strip out the protocol/host details from the originalUrl. This is not getting set in the same manner as originalUrl.