Revert "Added new configuration parameter 'hack_single_crypto'"

This reverts commit 4a0f9e958f21db15e316e7819c8fd9b02f0291ba.
fix for un-emitted registeredFailed event
Revert "fix for un-emitted registeredFailed event"

This reverts commit 94ba60dc6cd94775a9001f52bb5a17ef5fbce5eb.
Fix unauthorized request handling. Thanks @iwanbk for providing the patch.