Sprint of fixes and enhancements

Fixes #45, #48. Implements #3.

Tested for non-CORS in:
 
- [x] Chrome
- [x] FireFox
- [x] Safari
- [x] IE 10
- [x] IE 9
- [x] IE 8
- [x] IE 7
- [x] IE 6

Tested for CORS in:
 
- [x] Chrome
- [x] FireFox
- [x] Safari
- [x] IE 10
- [x] IE 9
- [x] IE 8
- [x] IE 7
- [x] IE 6