Towards eliminating putStrLn in the shell. (and enabling messages back to web server)