Implement echo on and off for unix and windows

Shamelessly stolen from the cloudfoundry cli