Removed off-module state stuff, took out of book.
Added inline docs
Changed 'cache' to 'registry' since that's more accurate
Fixed PySide stuff. It was just totally wrong.