add page length to the API, CSV download
raise rescuable exception if format is invalid
Merge branch 'master' into comments