Centralize scripting functions for entity and channel handling
Add virtual channel support