Redo capabilities as URIs

This redoes capabilities as proper URIs. Eventually they should be
redone as a fully qualified URL including the location of the Keyspace
server they refer to, since capabilities are specific to a given server.

This is a first step towards URIification.