Add more hooks into aesthetic customization.

Also improved the highlighting API and added utilities for better
mapping base positions to position objects and related code.