Some extra comments, mediaembed content fetching logic moved to separate function, reloadContent().
Implemented 2-step undo (allowing to undo to link as plain text) upon mediaembed paste.
Added a config value allowing to disable paste handling for mediaembed plugin.
Codesnippet without url will no longer create extra http request.