Added ability to get list of ids and clear the selection.

It is useful to allow people clear selection and get selected items ids.

Not all the models will be returned if they are using pageable extension.