Updated repository and factorys to use entity and field features.
Added findAll to "global" repository functions.