bug fixes. Add pagination support and update for JSONJoy error handling