added support for session cookie
added base support for other kind of connections
switched to 0.4

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>