Testing cookie setting
Setting referer in cookie
Setting also first referer
Merge pull request #2 from Gawyn/hooks-in-application-controller

Hooks in application controller