Add fernet gem
Parse query string and guard for presence of referrer