Updated to v2, added code to create folders and authenticate with wider scope

Thanks for your excellent example. I am using it to upload directory trees from our local machines and servers.  Had to poke around for an easy way to authenticate with a different scope using "Flow" object.