Changed some permissions
Changed date in copyright.
Improved handling of equal referer and request urls.
Changed .gitignore