Added app wrapper to jsonify all internal Flask exceptions.