Move tests around to make intent more clear.
Add build scripts.