Allowing the pathPrefix to be configured on settings

This change will allow the prefix be configured in controller or
other helper/plugin. It helps the user to easily set CDN servers
or just a different host to avoid the cookies be set on the request