Standardized WebProxy events/callbacks. Fixed Socket exception found in previous commit. Cleaned up/organized/commented code