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
@luisvm  I applied that suggested changed and test are not passing now.