Maintenance: Small server and client changes for better function
Wrote python branch of server.
Has some bugs (for example, on-close, on-event, etc appear to be triggered very slowly)