check that the API can honour the requested parameter (page, sort, fields...). Package data and metadata under a "phedex" root object
fields, sort, page etc to uppercase. Correct error-messages in all (?) cases where an illegal request is made
some functions I had thought were obsolete turn out not to be. Deal with passing parameters around somewhat better.
Hopefully correct output structure in all cases. Needs testing...
sub geometry returns 'FLAT' instead of 'flat'