CREATE OR REPLACE EVENT and new methods in struct LEX

Implemented CREATE OR REPLACE EVENT logic. Bin logging is also done properly if CREATE OR REPLACE is used.
Added two new methods in struct LEX to improve readability.