Split Generator.execute() into multiple methods

First (easy) go at reducing the size of Generator.execute(), moving some
code to Generator.install() and Generator.package().