Add ApiCompat and use that instead of ApiVersion in ping

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>