finished require-ifying everything.

made build script to put everything in one file in the right order