Improved Prolog debugging support

Added log/n, log_warning/n, log_error/n, and break/n Prolog primitives.

Game now pauses if it encounters an error while loading initial prolog
code into KBs.