Cleanly handle the case where the file goes away
Removed a couple old TODOs (things that were already fixed)
Moved the 'view' responses into the standard to_json() framework