changes to add in tutorial, may be obviated by Baileys work
make each task a subclass, use state machines
Merge pull request #255 from kookster/master

Latest upload fixes.