Database Repository Improvements

Fixed in v2.0. Allow read only one to many entities
to be disassociated from their parent. Allow many to
many entities to have attributes updated. Add support
for bulk update SQL commands. Enhance support for
custom join criteria when retrieving child entities.
[#248 state:fixed responsible:none milestone:v2.0]