Client turned into a client library

Turned the client into an object-oriented (ha!) client library.
The CLI script has been modified to that effect.
Also, there's "beginnings" (HA!) of a Tk client.
Okay, now I'm getting more and more confused. Better call it a day.