new token-permissions model, and compositor filters paint messages based on id
removed unused macros from main/macros.rs