Switch frontend permission handling to store permissions in a separate cookie.  Reduces the risk of hitting the 4KB cookie limit
Merge pull request #746 from hudmol/move-permissions-to-separate-cookie

Switch frontend permission handling to store permissions in a separate cookie.