minor refactoring

- add some checks and
- simplify limit field
rework api client (move method)

- move getBytesPerLanguage method into github client
where to find github api-auth resource?