write synchronous to stdout

This prevents the problem of stdout not being flushed on windows
Escape new lines and quotes for teamcity
Merge branch 'akselsson-escape_commit_messages'
Merge branch 'write_synchronous_to_stdout' of https://github.com/akselsson/grunt-teamcity into akselsson-write_synchronous_to_stdout
Merge branch 'akselsson-write_synchronous_to_stdout'