Create mailbox.c

This file implements all system calls.