Refactor to split ws.c into parts

        - Split into handshake, frames, read_message