Update ProcessManager to handle (sent) messages polymorphically, and allow creating handlers with generic type argument "Message"