Implementing index and detail routes

with some really rudimentary pagination.