Fixed and customized the folding service

- wrapped the returned range list in an object (see note below)
- added options to customize the folding service (see description in code (type definition) for more information)

Returning an object is the chosen format of all service responses: even with a single key if it is used only for wrapping another type of data.

Closes #46