Implement ElementInterface and cleanup Betfor headers

Also implement some functions we need for getColorPanel