Made more of the HTML declarations programmatically generated from segment info.
Factored out the segment color implementation into a separate mixin module and added support for segment opacity.