Add resources and meters to the v2 shell

This also moves the build_url function to a common file.

Change-Id: Ia94f9fa37c83fc756a395a918ad254111951f67b
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Merge "Add resources and meters to the v2 shell"