Generated a build script and tidied it up, then added local.properties to .gitignore.