Integrate installer into main source tree

How does this look? I've tested it and everything seems to work, but I've put it up for review to make sure that I'm not the only one that runs this with no problems.