added sha1 context
Sha1 Ref implemented
Sha1 TH helpers added
Loosened dependency for base
f moved to TH code