minor: re-order config form
Use HTMLPurifier and CSSTidy