Changes to market source and social cookies to support running in a sub-directory setup