Fix loop() blocks cloud function issue.
Merge pull request #3 from hekike/fix/loop-blocking

Fix loop() blocks cloud function issue.