Add console class - central logging infrastructure

This also adds a dependency on curses for the server.