refactored to make a more generic uploader

```javascript

var uploader = require('uploader')

i = uploader(el, {
  url: 'http://.../blah.jpg',
  name: 'avatars[]'
})

i.addClass('avatar');
i.on('complete', doSomething);

```