Added timed poll function and exposed actor types.

The timed poll function returns either a message or a TimedOut object.
There is an ugly hack in place to ensure that a TimedOut object's type
behaves like a nominal type.

Also exposed the AID and TimedOut types for pattern matching.