refactoring of events and data in common
adjusted server and client accordingly
changed communication of events to JSON-conform format