Useful threading code, mostly GCD and NSOperation, written in Swift.