move AlleApi.* methods to lib/alle_api