Much improved Deviation detail view

* proper handling of no (invalid) results
* better display of trace details
* customized display for different types of deviations
* Default to local time instead of UTC
* Cleanup and refactoring of code