Added mime type support, binary resources and drag'n'drop.
Refined editor mode selection. Updated doc.