cleanup to sha implementation, making things a lot cleaner. Also added update/finalize routines
Merge pull request #2 from stlab/sha

Cleanup to SHA implementation, making things a lot cleaner.