Refactor file structure to separate framework and server stuff.