Began implementing "client" script. 

There was/is a fair amount of refactorization where functionality could
be shared between the host-process code and the client code.