js: embed: Make init, fetchComments wait on /config
js: embed: Make init, fetchComments wait on /config

Those two functions need to wait for the config to be
fetched from the server. Utilize the newly introduced
`wait_for` helper mechanism to coordinate using registered
triggers instead of using timeout/retry.

posativ/isso,posativ/isso,posativ/isso,posativ/isso