Remove legacy codes

We can use [SessionStore.jsm](http://mxr.mozilla.org/comm-esr24/source/mozilla/browser/components/sessionstore/src/SessionStore.jsm) on ESR24.