lib and ws rework - many changes

Reworked a lot of the combined code from me and sommers libraries.
Virtually nothing of sommers code now remains (because it didn't work
properly).
The webservice is working now, and running with only minor issues...