Exceptions stuff

Added exception thrown when encrypted message is received but no
encryption key is set
Fixed wrong token exception format (PHP legacy)