Add documentation to src/connection.rs.
Add ANSI escape sequence Trait.
Rewrite the connection module.