Allow to use libgit2 with plink

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Reduce number of ShareMutex classes

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Do not hash files over a specific limit

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Allow limit to be configured by users

Signed-off-by: Sven Strickroth <email@cs-ware.de>