Support sha1

This is reviewed patch against #74.

After he posted it, the another coin using SHA1 (named Yaycoin) was born.
So it's better to name 'sha1' instead of 'sha1coin'.