messages: use of RestValidator to the restful.py

*put the RestValidator to use in the messages/restful.py and
retested the test_messages_restful.py

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