Refactored signed request handling
Merge pull request #288 from SammyK/refactor-signed-request

[4.1] Refactored signed request handling