Create the main installation script.

This script will eventually be branched off into multiple files to be more modular. This is a first rough draft.