Introduced a new form element for selecting a colour on the customcert customisation page

Also fixed a few other minor issues.