Simplify config and command line processing.
Add ability to query status to client.