refactoring protocol step 1
working with changed protocol
use trait to save last message
send last messages on connect
refactoring javascript parsing
Merge pull request #37 from SuperTux88/refactoring-protocol

Refactoring protocol