Added MongoDB support and the basic  REST function : POST and GET for the messages.