Added "crtical" flag to message header.
Added "next message" system call ID.
Implemented "next message" functionality and thread message status.
Merge branch 'messaging'