Swift updates. Xcode 6 GM.

Swift updates. Runs on Xcode 6 GM. Unit tests pass: updated to compare date components on weekOfYear.  Most other changes were Xcode suggestions for updating Swift.