tools: change INetURLObject::getData to return std::unique_ptr

Life-cycle becomes a lot more obvious this way.

Change-Id: I1ca99607f609a2223011c40447ad1cd9ca5ccaa5