Fix Xcode 5 warnings.

~~Don't merge yet, waiting for SocketRocket pull request to be merged to fix warnings. (https://github.com/square/SocketRocket/pull/102). Will then update to the latest SocketRocket.~~ **Changes merged.**

Fixes Xcode 5 warnings and recommended project file changes. Also fixing analyzer warnings.