Further abstract modifyGeneric.

To include remaining 'modify*' functions.
Extract common code from paginated list functions.
Merge pull request #18 from alanpog/more-abstraction

More abstraction