Add various style functions used by other modules.

These haven't been tested - I'm checking them in so I can rename things.