Added test ensure an auditlog is created when all items are
removed from a collection of openmrs objects
Added support for linking logs for collection items to be linked to
that of the parent, also made change to ensure an exception is re thrown
when the module global properties fail to get saved
Made changes to clear ThreadLocals for collections when done using them