Add the excludePath and prettyPrint parameters

In addition to the new parameters, I have updated tests and improved
error handling when requesting a resource definition that does not
exist.