Improve EcwidAPI function wrappers

- got rid of workarounds for onPageLoaded early firing
- unified onPageLoaded wrapper