[ApiServer] removed some couts;
[PHPEngine] added ack and publish functions;