Reduced boilerplate code for handlers.  Known bugs: stdin isn't being passed properly to the c code, stdout/err conflict with each other, handles only read one line at a time.