Huge refactoring.
Remove useless files and code.