Move API related models and parsing logics to a common package

This package will be used by cts-api-map project in the near future.
Make it common to reduce code duplication.

Test: m cts-api-coverage
Bug: 328699028
Change-Id: I975ca3ebc992255a23ec210585d69c0391909f2c
20 files changed