Sign back in to last team on relaunch

fix for issue https://github.com/wlaurance/slack-for-linux/issues/4. 

Whenever we get a 'document-start' (https://github.com/rogerwang/node-webkit/wiki/Window#document-start) event we cache the sub-domain in localStorage. If the domain is a plain slack domain we assume a logout. Upon start-up we append the iframe with the cached sub-domain as the source url.




To avoid the `exported` fix for JSHint, write the object as a property of `window`. It makes it clear that we are intentionally exporting and avoids the extra line.

```js
var webslack = (function(gui,urllib,pkg,localStorage) {
```