Update externs for elastic client error.
Refacgtor app.Online into app.Xhr.
Remove unused args.
Flux dispatcher with promises and error handling.