Introduce staged function.
actor refactoring.  actor now has only one mailbox. and process messages in serial from the mailbox.