Changed default listen addr, and added option "cors_origins"

The "cors_origins" option is a list of strings for defining acceptable
CORS origins.
http: Started implementing CORS
http: Changed func name from Jsonify -> WriteJSON
config: Added support for option "cors_origins"