Don't crash if server returns empty response.
Use another thread for sending frames.
Fixes NetworkOnMainThreadException on Android 4.1 (Jelly Bean).
Merge pull request #5 from codebutler/master

update