[engine] Fix bug in statistics API of HTTP interface.
[base] [engine] Plumb scheduler statistics through the heartbeat protocol.
[webui] Expose scheduler statistics on the web UI.