updated Makefile, setup.py

using null terminators for safety
Use tiddlyweb.util's sha to provide portable checksumming

sha1sum is not going to be on all machines, so we use one
in python instead.
Merge remote-tracking branch 'cdent/portable-sha'