More Bug fixes and Tweaks

1.) Fixed a bug in the admin section where adding a new bot causes a
fatal error and a white screen
2.) Fixed several bugs in the JSON GUI that caused some display
problems.
3.) Added a login feature to the debug reader, so that only authorized
admins can view the debug files.
4.) Other minor bug fixes, too numerous to mention.