Modified the messaging system

The new messaging system is adapted for AJAX

Signed-off-by: OMGCarlos <me@omgcarlos.com>