Removed extraneous arguments from calls to log_().
More optimization and modularization.  Using constants for debug levels and HTTP statuses.  Main event arrays are initialized once globally.  More informative logging messages.  Script can no longer exit from within functions.