Refactors file structure.
Adds telnet server.