display memory stats in web UI in human-friendly form.

This patch formats the free/total memory stats in the web UI into kB/MB/GB to make it easier to read.