add quit message via hardcoded json (maybe use a class next time) and use gson::fromClass
dont read data if incoming stream is empty, commented out old code
remove old imports