Store committing username in localStorage

Also bugfixes if the user hits cancel
Deal with localStorage errors

Blackberry is hilariously broken in this regard.