Initial work on image support.
Local docs that haven't been synced are now deleted right away.
Handle some edgecases for the Surface. Needs more investigation.
Image support + on the fly thumbnail generation.
Added support for links.
Merge branch 'master' into image-support
Merge branch 'image-support'
Improved timestamp updater.