expose deleteMessage to socket api
add safety check to message delete
Merge branch 'development' into livetest