refactored out server commands to separate files
copyrighted
huge refactoring