API overhaul bugfixes

Tested proxy, fixed various object reference issues.
Added config file README

The config file is now JSON, so it can't have normal JavaScript
comments. Instead, created this file to describe the various
configuration values that are available for the server.