Refine JSAPI bridge to support multiple ECMAScript contexts

src/js/Script.cpp (ECMAScriptContext::Impl::Impl): Refine
src/js/Script.cpp (initializeClasses): New
src/js/esjsapi.h (NativeClass): Refine