Added basic Api socket, and coresponding config.
Added brief docs for new Api code.