Added an api exception filter and tweaked error handling so exception messages display correctly when deployed