Major changes

Remove unneeded comments.  Move globals to configuration object. Update
path matching.  Make all responses json.