Added some extra functionality to widgets on objects.
Fixed up get_document and write_document
Merge branch 'master' of github.com:frogatto/frogatto