Introduce Branch/Capture/Node system

Brings in new classes to assist in the construction of a lookup tree to
make it easy to verify accuracy and also to allow the Locator and Wsgi
implementations to attach additional attributes.