Add Prev Link, add repo for json lib

Would something like this work for providing forwards and backwards links on the offset?
(Sorry it is a bit hacky with the change the one method "linkHeader" to do two things).