Some Generalizations

This pull request includes various changes we've make to xcode_builder to be more flexible so we can use it in our environment. I can split these into separate pull requests if that's better, or maybe merge into just one, let me know.

Hope these are helpful - happy to answer any questions.