Replace boilerplate in directive tests. Finalize theming for the color picker/thermometer: x-browser fixes.