Many small performance/mem leak improvements.

Layout logic fixes.
New Point helper methods that avoid allocations.
Better texture caching logic.
Cleanup of a bunch of EventDispatcher subclasses.