API-aware networking and security for containers