Add a histogram display to the CTF editor

Thanks to @rkern for this one... Brought over from the volume rendering experimental branch.