Fix nodejs support

Here is a couple of late breaking fixes.

While working on the standalone support I realized why my typeof tests were failing and I had to use exception handling so I fixed them.  I also only partially fixed keyring localstorage for the node environment.  This change fixes the store method as well.