refactores Mailbox/Message, adds service definitions, fixes business logic in connector & factories