Refactor and extend Koha installation