Add support for multiple ports per app.

AppDefinition now accepts a sequence of ports.
Each app instance gets the same number of ports via PORT, PORT0 .. PORTn env vars.