Swift and Xcode 6 updates

This will probably make more sense to read commit-by-commit, since the diff got a bit funky.