Rearrange some files, create a build script.