Tuned stability and performance

- HttpClient is now started and stopped in the main method. This leads to fewer threads needed and faster response times
- NIO is now used for writing the output