Added event dispatch and handling system.
Added MySQLi database handler.