Cleaned up globals, fading.

Some errant global variables had inadvertently been created.
These were localized. Also, the ui has a new fade() function
that makes entities transparent with an adjustable rate.
Thinking that scales_mapper now needs to be refactored or
dropped entirely to work with the new entity framework.