Add initial support for paging as specified in LDP

This implements optional paging for the directory listing, as specified by LDP.

The chunks are 5 items wide, for demo purposes.

Some lines can be uncommented to force paging by the server