use lodash-style chaining

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
use lodash compact instead of reject+undefined

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
improvement: add pagination to fetching packages (i.e. fetch all packages at once)

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
improvement: add pagination to fetching nodes

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
bugfix: fix infinite pagination of packages

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
improvement: unified paginated fetch method + bugfixes for nodes and packages fetching

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added tests for functioning pagination

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
add tests for paginated requests to /nodes and /packages

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
simplified existing tests for fetching nodes and packages with paginated calls

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added tests for selecting nodes and getting a subset of packages

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added test for all nodes if no package was selected

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added test for selecting a package and getting a subset of nodes

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
Merge pull request #11 from TelekomCloud/improvements/tests-and-fixes

pagination and minor improvements