MT#3997 Fix general collection/item handling.

Use paging.
Start adding tests for contacts/ collection.
Move more common functions to Role.
Use proper forms for field checking.