internal/v4: resolve ids

This allows all charm store paths to contain charm URLs that are
not fully specified.