Add logger.rb.
Add use of logger, use render and render_json methods, add an --output cli option.
Employ a render_json method, render method for text only.