Adds `Context.register()` method to replace decorators.

Adds `Proxy()` class to improve proxy performance and encapsulation.
This might be less fragile as `return pxy.type_str == str(type(None))`.  (I realize that I originally wrote this).