Allow overriding the warn handler.
Merge pull request #15 from terinjokes/warn-handler

Allow overriding the warn handler.