Moved the logic to remove www from Site.domain into current_site_domain to fix issues reversing URLs when Site.domain has a www.
Merge pull request #19 from cmsimike/master

When using REMOVE_WWW_FROM_DOMAIN to remove www from Site.domain, reversing URLs in templates fails