Refactor project structure

Move all the folders and files according to a new structure.