Added handlers to override System.in/out/err streams to the console so
that applications using Console can directly write to console using
standard Java APIs.