Fix bug #18

Bug was due to chrome api being asynchronous.
Opening a saved window then closing it clears the state.
Added in feature that unloaded tabs can't effect saved state.