Generic support for commands

This addresses issue #9 by implementing support for generic commands, and (partially) issue #10, by no longer overwriting GOPATH in our build script.