Link the API and Lang repos, clean up build script

This should make it much easier for others to use the repo.