Factor uploadImage into plugin where it can be overriden.

Conflicts:

	src/plugins/oer/assorted/lib/image.coffee
	src/plugins/oer/assorted/lib/image.js
Pass element to the uploadImage call.
Merge pull request #45 from oerpub/oerpub-ticket425

Factor uploadImage into plugin where it can be overriden.