Add JSON coding
Encode document as json files. Work around bug in Base64 encoder which doesn't always put an '=' at the end of the data.
Add dropbox synch library.