Code cleanup, minor bug fix

Fixed a bug in the Search/Edit AIML page script that was causing AIML
content display failures, and cleaned up some of the unnecessary
debugging code that was accidentally released.