Raw stderr logging

@nirs this should work better than the previous attempt, and it's configurable in case you don't want it (just specify your own output handler).