First pass at discovery with attributes.
Cleanup discover doc for new query params. change attribute to query.
Fix REST bugs. Add back caching. Fix error handling. Change attributes to query.
linting
typo
Merge pull request #1173 from bendiy/21224

21224 - More REST API fixes for new query param structure