Change "warn" message type to "warning"

* This breaks backward compatability. "warn" messages will now
throw an exception.
* Updated documentation.