Code cleanup
There may be more than one message in incoming TCP data
Unifying the tests
Also run tests against actual names
Renamed some functions and callbacks for consistency
Reviewed the AppServer code