close #136

Add mimetypes to CodeEdit and add TextEdit and GenericCodeEdit to widgets. Also update the documentation.