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