Implemented SHA1 hashing algorithm.

* Adapted the freely available implementation from Water Juice
    http://waterjuice.org and
    https://github.com/WaterJuice/CryptLib)
* Changed compile options for the Makefile to output debug information.
* Added SHA1 test function.