applib: Add showErrorAndQuit routine

This routine addesses #45; namely, it displays an appropriate error dialog
and quits if an error condition is set--that is, if NZ or if A != 0.
Replace hackish return code

Replaced with code that respects a thread's assigned return address.