warn: add custom warning feature

You can set up custom warning templates using TWPREFS and then apply
them the usual way. Quite simple, really.