Few changes from first implementation attempt.

Made the framework easier to include as a git submodule, and prepped
the controller setup to handle multiple segment namespaces.