[#239] Code cleanup

* Removes duplicated code in `listAll`, and use only `list`
* Adapt new code to use `list` method
* Some backward compatible methods are now available, since we now list
  requires a `pageSize` as parameter