Clean up ExceptionHandler and MessageReporter

Moved to a better namespace,
put each class into a separate file,
added tests.

This also adds the (trivial) LoggingExceptionHandler.

Change-Id: I8a05d070572d86583929a0796e86a71f2157609e
Merge "Clean up ExceptionHandler and MessageReporter"