#398: first cut at implementing a minimum error level

@lunaryorn let me know if the interface looks reasonable.  Don't merge yet, I need to test it more, this is just for feedback.  Thanks!