Swift and Xcode 6 updates

_:warning: This may not be backward-compatible with Xcode 5! :warning:_

This PR will probably make more sense to read commit-by-commit, since the diff got a bit funky.