Setup some simple logging
Setup some better error handling
Use jsonify over and cleanup the view responses