Improve errors and config

This branch removes the awful global config (#135) and replaces it with a `config()` method. Also improved:

* Better errors (#60)
* More documentation
* iFrame fix for #78 (WIP)