Resource: Tasks are returned by URI, not object path

This is what I need a typechecker for.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>