Much expanded dropbox def
Some refactoring in dropbox storage
Added extensive unit tests to fix #51 and I think I've finally got rid of that bug.