Added provenance query dialog and integrated it with the rest of the project.

Users need to be able to query the provenance that is collected.