pull installation scripts into separate files

to make it clearer what each piece is doing, and to allow each piece to
be used separately