various updates (cookies, params)

added support for session cookies
added support for parameters storage (kwarg)
added base support for other kind of connections
switched to 0.4
based on the xhr-polling support PR branch (cf #10)

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>