json pagination added. Following hal standard http://tools.ietf.org/html/draft-kelly-json-hal-06

Fixes #22