Refactor pagination & add pager directive.

 * Directives share controller.