URI proposal

This is an early draft of a URI interface proposal, discussed at https://groups.google.com/forum/?fromgroups=#!topic/php-fig/06BSXGqPRiU