MDL-39756 add advanced attachment options to essay question type

Adds a set of options to the essay question type which implement
the following new features:

-Adds an input format which accepts only file uploads, and no
 inline text.
-Adds an option to make the inline text response optional when
 attachments are enabled, so students can choose to upload
 an essay file.
-Adds an option to make attachments required, so essays without
 attachments will be marked incomplete.
BU-99 fixes TinyMCE loss of formatting on backspace

Upgrades TinyMCE to include the delete/backspace patch from
TinyMCE master:

https://github.com/tinymce/tinymce/commit/baf5a5858b934aded5baf3d390f37a9535708d78
NOBUG make city and country not required