Rethought the manual lending process

Resolves #347

It is now possible that a student not showing in the treetable of lendingView can lend teachingmaterials