Integrated heading into the Knn training

And into the TrainingTest activity
Does it work? We’ll see. I need to take some measurements.
Cleaned up SettingsActivity, made a new setting

SettingsActivity was trying to define the layout, when this is supposed
to be in XML.
The socket server URL can now be changed from the preferences
Socket UI updates