Global extensions.

Support for per-route and global extensions. Support for extended "unload" functions.