Implement CLI and wire the parts

* CLI is now fully functional and plays well with the server
Add TODO file