use JSON for cookie serialization
JSON instead of JSON::XS
Revert "JSON instead of JSON::XS"

This reverts commit 97d0fdeb7f50cfed6d7445d7e44aea535df7053c.
Revert "use JSON for cookie serialization"

This reverts commit 1bd9191ad918e1e6e96a551b8af6f175363c36cc.
use static prefix for beep