Fix pushing from onOpen/onReopen with WebSockets (#48)

The webSocketOpened flag must be set before invoking _open(),
otherwise _pushWebSocket fails.
Clear _request.closed flag when (re)opening (#53)
Merge pull request #52 from jdahlstrom/master

Fix #48 and #53