Environment as a First-class Abstraction in Multi-Agent Systems