Basic support for MSGGET and MSGSND, and partly fix MSGRCV impl.