Some refactor to put things into objects and provide a consistent variable access interface.
Moved all html work out of board and into the renderer.