[TIMOB-16523] Created XHR shim, refactored code base, improved reflection API