Fix block retain cycles and rename local 'self' variables to avoid confusion

Several ivars were accessed in blocks, implicitly causing self to be retained. I verified that this caused a retain cycle on SRWebSocket, and these commits resolved the retain cycle for me.

Additionally, I renamed the local 'self' variables to avoid confusion with the 'self' instance pointer.