Added ownerId to FunctionDefinitionRecord.
Basic MongoDB repository infrastructure.