Image upload, implements #6

I took @campbeb s implementation of the feature and applied some polishing to bring it nearer to merge-ready.
MIssing items:
* Attached image info is not stored with the offline log (would require db change, would do that if everything else is ok)
* No images for trackable logs yet