URITransformerBuilder: implement all building code with argument checking etc

Not tested yet.