Bug fixes, updates to promises

- "type" not being passed to response handler
- Check for opts before accessing props
- Add done, fail and always to promises
- Default type to 'text' to be more universal
Re-minify file with UglifyJS to avoid errors