Merge 159 and 162

In this PR I will merge the PR #159 and #162 and try to add signature to logout request and response
noticed this details from a commit a while ago — would be good to cache `@schema` for subsequent validations. But that's just an optimization and can be handled later. I will send a PR for that once all this is merged in.