Updates code to Swift 1.0 / Xcode 6.1 beta