Add GUI for primecoin demo. Catch more errors.