More ajax-related porting

Initial implementation of ajax error handling
Fixed ajax modifications of select and checkboxes
Partially ported TJavascriptLogger (used in tests)