Pin states on page load

The web interface now checks the state of all pins and sets the buttons
accordingly on a page load or reload.  Currently done asynchronously.