Simple non-blocking framework for JSON messages over pipes or ssh