mock/rest: common implementation for 'create message' handler

to handle everything that is basically a 'message' in the system
mock/rest/test: Fix crate message helper to actually use parent_id passed