Fix tab restoration

This adds the `"sessions"` permission to manifest.json,  which  enables actual tab restoration.

This fixes #1169, resolves #133 and #872 (already closed), and fixes #1069.