Added support for storing token in localStorage instead of cookies.