GH-1: Added upload-code (but buggy)
GH-1: Added rest of sync-methods. closes GH-1.