Warn user when attempting to switch modes without cookies

If user has JavaScript enabled, we'll attempt to check and/or set
a test cookie using JavaScript and show a toast if the user's browser
doesn't support cookies.

Bug: 51277
Change-Id: Iaa61dee1a285249ba662f935dd257ebdfc8ca10d
Merge "Warn user when attempting to switch modes without cookies"