replaced beforeundload event by chrome.runtime.onSuspend event in order to make this work with Chrome Packaged Apps
Merge branch 'refs/heads/develop'

Conflicts:
	lib/socket.js