Show server stats on the main page

Also some cleanup and comments