Truncate log files to 2MB
api: Add long-polling enumeration endpoint

Responds with full enumeration on any change.