EDITING: update img src after upload

When an image is uploaded, replace the `<img src="data:..."/>` (data URI) with `<img src="/resources/[hash]"/>` and allow retrieving resources from `cnx-archive` or `cnx-authoring`.