Refactor the api_get management.

Now use a dedicated class to it.
It will be easier to add some functions to it, and to do the
verifications.