Merge pull request #1 from hekike/master

Clean up the code
Merge pull request #2 from hekike/master

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

Fix loop() blocks cloud function issue.
Merge pull request #2 from brewfactory/master

Fix loop() blocks cloud function issue.