httpbakery: add assert argument to CheckRequest

Also change it to return the information declared.

This is the first support for "declared" outside the checkers package.
Exported functions should have comments