add pagerfanta
more tests and support for paginated collections
made escaping slashes in json_encode php53 compatiable