Added log message output threading.

The log manager can be configured to use an internal thread to
flush/output log messages to file.
Also added a generic OpenGL error message for error popup dialogs, need
to add specifics.