Several memory leaks fixed. New THtmlDOMControl class introduced.