Add pagination support for client

Fixes bug 1130625

Add pagination params: -P, --page-size SIZE
Add sorting params: --sort-key FIELD --sort-dir {asc,desc}
Add xml support

Change-Id: I76abb6335f53176feade216413a8cabaaefe42be