messages: addition of REST API

* Adds an errors class for the messages
  restful api.

* Adds a MessageValidationError class to the errors.

* Adds an error handler for the messages
  restful api.

* Tests the messages restful api.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>