add RESTful service for messages