Adds offset and limit query parameters to index endpoint. Fixes #6