json default for transport and resource __repr__

Make json default for the transport and add a __repr__ method
for the resource which will be useful for some basic printing.

Change-Id: If006cbdaa5c50b948e118f3c8f5d5ab3c259905d