Initial commit of control panel module (not tested; only change is generalisation of hard-coded settings)