:Status qw/HTTP_BAD_REQUEST HTTP_OK HTTP_NO_CONTENT HTTP_FORBIDDEN HTTP_UNAUTHORIZED/;
use JSON qw/encode_json/;
use Log::Log4perl;
use POE::Component::Server::HTTP qw/RC_OK RC_DENY RC_WAIT/;
use DB_
;
if (exists $commands{$user}) {
my $json=encode_json thaw $commands{$user};
$log->debug("Sending JSON: $json to $user");
$response->content($json);
$response->code(HTTP_OK);
$respon
);
if (exists $responses{$user}) {
my $json=encode_json $responses{$user};
$log->debug("Sending JSON: $json to $user");
$response->content($json);
$response->code(HTTP_OK);
$response