Fix tab restoration

This adds the `"sessions"` permission to manifest.json,  which  enables actual tab restoration.

This PR should:

* fix #1165
* fix #1069 
* resolve #872 (already closed)
* resolve #133 (already closed)