Initial tech tree and module refactoring