Fixed for SSL handshake timeout

Sometimes when APNS trying to reconnect to server, Socket timeout or
SSL handshake timeout error happened. This fixed the problem by
allowing 3 times both reconnection and hand-shakes.

  File "tasks/apns.py", line 144, in _connection
    self._connect()
  File "tasks/apns.py", line 135, in _connect
    self._ssl = wrap_socket(self._socket, self.key_file, self.cert_file)
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py"
, line 381, in wrap_socket
    ciphers=ciphers)
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py"
, line 143, in __init__
    self.do_handshake()
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py"
, line 305, in do_handshake
    self._sslobj.do_handshake()
SSLError: _ssl.c:489: The handshake operation timed out
Fixed tab indents to spaces
BUG FIX: Frame struct fault in multi-sending

	modified:   apns.py
	modified:   tests.py
Merge pull request #52 from Ethan-Zhang/master

BUG FIX: Frame struct fault in multi-sending
Merge pull request #32 from kernys/bugfix-request

Fixed for SSL handshake timeout
fix bug:

python-env/lib/python2.7/site-packages/apns.py", line 142, in _connect
    except socket.timeout:
AttributeError: type object '_socketobject' has no attribute 'timeout'
Merge pull request #53 from simon-liu/fix-socket-timeout-bug

AttributeError: type object '_socketobject' has no attribute 'timeout'
Fixed bug with attribute 'timeout'

  File "./apns.py", line 139, in _connect
    self._socket.settimeout(self.timeout)
AttributeError: 'GatewayConnection' object has no attribute 'timeout'
Merge pull request #56 from ogreser/fixing_timeout_bug

Fixed bug with attribute 'timeout'
Fixed bug with missing SSLError in imports

  File "/usr/lib/python2.6/dist-packages/apns.py", line 153, in _connect
    except SSLError, ex:
NameError: global name 'SSLError' is not defined
Merge pull request #62 from ogreser/fix/SSLError

Fixed bug with missing SSLError in imports
Fix travis user name
Remove python 2.5 from travis yml
Merge pull request #67 from hagino3000/fix_travis_yml

Travis no longer support Python 2.5
Merge pull request #66 from hagino3000/fix_travis_user

Fix travis user name to current owner
changed PayloadAlert to allow an alert which doesn't have any bodies
Add enhanced message and its corresponding error-handling, resent
mechanism. Fix #61.
Remove unused logger.
Fix typo
Update README.markdown