Refactor frame functions
Server can respond to closing handshake
Update gitignore
Refactor message sending and making nonce