enhance the uri api

Add functions to reset parts of a uri.