Started working on WebSocket support, handshake so far works

Next step is to actually properly read the messages and process
them transparant. The simple test (websocket.html) is able to
connect properly, but that's about it so far.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Moved the line processing to a seperate function

This way I can just put the frame decoding for websockets
in the normal callback and still use the already present
line processing code.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
I should probably not forget to build locally first

Good thing I almost instantly got a travis email about it.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Ew what was that extra indent doing there :(

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
And I got WebSocket frame decoding to work!

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Oh shut up you silly compiler

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Might as well just send the client, that has the bufferevent anyway

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
If anyone asks, that didn't happen....

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Made the data sending slight more abstract

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
And we can now send data back over WebSocket :D

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Fixed a small little bug where it would sometimes use characters from the previous string

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Merge branch 'websocket'

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>

Conflicts:
	src/client.c