Fixes #5594 - Failed registration automatically reopens register form on walled garden login page
Refs #5594 - Clearer JS implementation
Fixes elgg.session.cookie() support of Date() for expires
If JS enabled, walled garden registration reload will not flicker
Refs #5487 account related pages use walled garden now
removed unnecessary cookie and fixed empty screen if cancel after failing registration
Merge pull request #5628 from cash/pr-5620

fixing the issue with registration not showing on walled garden after failed registration