uri missing in source metadata files #298

URI is now appropriately passed to Inspect when creating a source
metadata file. This also includes some refactoring of Inspect to
better handle different combinations of instance arguments.

closes #298