Dialog reverted from Prefwindow to Dialog
Compatibility with Firefox 3.5 restored

  * Added sanity checks for sessionStore object
  * Don't add pref observer for FF < 13
  * Removed unused function