Improved security checking for get_message and added delete_message API callback
Signed-off-by: ranok <torreyji@clarkson.edu>