Restructure result API for row limits

Work towards #13.