Add support for searching json in functional tests

Add several methods for querying the json responses from the api
phpcs style fixes
Refactor to use JSONPath-style search

Pass a $path in the form of key1.key1...keyN to search multi-dimensional JSON arrays
like those returned via the API.