Use EM.schedule instead of unnessicary thread

- EM is not threadsafe apparently
Merge pull request #4 from dalyons/master

Stop pubnub from crashing EventMachine through unsafe use of threads.