Swift: adopt syntax changes in Xcode 6 beta 4

This is not finished, please don't merge yet.

I have started this by adapting the visual test file to the new syntax. I will work on implementing the changes now and add more commits to this pull request.

Mentioning @totocaster just in case you'd like to follow this.