Move frame functions to new file
Server can send frames
Refactor connect function
Fix payload masking
Client can send messages