media lib - custom upload plugin

The plugin used before was pretty heavy. This plugin is tailored for a
modern browser.