Initialize XulPrefstore in geierlein.js

Otherwise the prefstore is initialized too late.  Especially for
the resetForm call on startup.
Wrap test for localStorage in try/catch.

Otherwise an exception is thrown in XUL environment.