Added ParsePage function to read offset and limit values
Changed ParsePage to use int instead of int64 and added a defaultPageSize parameter