Client improvements.

- Allow passthrough of basic authentication credentials to Tornado.
- Allow setting of action from the command line.
- Pick default port based on SSL useage and default ports.
Client Improvements #2

- Make handle stream handle all types of newline
- Strip the parsed field name (RFC allows whitespace)
Tidy Ups

- Remove uneeded strip()
- Correctly pass through user specified port
Eliminate warning by using pycharm inspector
Use json_encode, json_decode from tornado in listener.py
Handle naughty implementaions
Dont exit when the request returns, re-request
Add last-event-id support
added certificate validation support
merge patches from v00d00/client-improvements
merge patches from socketpair/pycharm+json fixes
updated version number to 0.4
changed events buffer from list to deque
[fix #6] moved _event_loop callback rearming to the post method, so it is triggered only when a post is triggered
updated version in setup.py
merged with v00d00/last-event-id
minor cosmetic change
fixes error handling of the client, by giving the full text reason of the http error
[fix #6][fix #8] removed events buffer as a list ; removed self._events and _events_generator() ; added toro.asyncresult to replace the self._events list, call self._event_loop() on new events and block the thread otherwise.
added keep alive option (-k) to keep retrying to connect on disconnections.