Remove repetitive code from getStory, getAll functions

Add new getPage func that hosts common get* code.