Added trainServer interpreter and tests for protocol. Tested.