added file storage to server and refactored ALL the things

needs MOAR refactor