Finished basic API and fixed pagination problem in one foul swoop - booyahh