Web UI: tiny cosmetic changes in html page
Daemon: use only range-based for loops

(Modern compilers with C++11 support are required.)