Refactor installer, delete unused classes/modules