Bug 506975 - Write sessionstore.js less often when on battery; r=ttaubert