Buildfile refactors

This has minor changes to logic, but mostly puts methods into compartments via files. `commands.go` and `commands_support.go` are the bulk of the command processing, while `builder.go` contains the majority of the parser.