moved some files and abstracted the file manager portion from the sockets file