Smart display pagination and per page section.

- Added smart-display option as table param.
- Hide pagination when there is only one page and smart-display is set on true.
- Hide per-page section when there no more options to change and smart-display is set on true.
- For per-page section, showing only options which make a seans and smart-display is set on true.