refactor(pagination): change the way `num-pages` is assigned

Closes #976
feat(datepicker): datepicker-append-to-body attribute

Attribute datepicker-append-to-body now supported in datepickerPopup directive.

This should enable datepicker popups to be displayed from within overflow-hidden
objects.

Tests and documentation updates forthcoming