4157 Give HTML classes to stats items

https://code.google.com/p/otwarchive/issues/detail?id=4157

Includes Pull Request #1911