Misc fixes in document picker, inline document loading and simple form editor.