Detect angular 1.2.x promise handling
Back-annotating better handling of pagination responses

Courtesy of @jails