Fix socket accept fail check

Fix socket accept fail check by evaluating return value as boolean, also
add more informative log message
Moved client logic to Client
Added missing private property to Server
Refactored frame processing

Refactored frame processing to implement a lot more of RFC6455. Now
supports:
- frames > 2KB
- fragmented frames
- control frames between fragments
Merge pull request #1 from DaveRandom/master

All The Refactorings!!!1