api: app is available when one of this unit is unreachable or started.

closes #561.