Massive clean-up and implementation of MinePanel.