Restructure "installation" module

Initial patch, does not compile yet (because of dependencies).