Added support for will messages.

Closes #11.