Updated command manager to take commands and encode or decode them
Created separate app with full login, from any interface
Reorganised ports
Refactored code to make it nicer :)
Minor fixes and comments