Port resources to cache instance in `get_object`

This is a more obvious approach than caching it in the `is_not_found`
handler.
Implement a stats endpoint for context and query resources

Fix #143
Add link to stats endpoint in context and query posthook
Merge pull request #162 from cbmi/issue-143

Implement stats endpoint for context and query instances