code cleanup in the views exception handling

**Ready for merge**

this simplifies and standardizes the exception handling for the views that use the jobs model (including the objectstore).  
Now this uses a decorator to provide the jobs model and cleans up after itself.