Issue #79: Fix new color issuance

Changed get_previous_blockhash to get_previous_blockinfo
Added sanity check for height so we don't get in an infinite loop
Fixed a couple of dumb errors I made in colordef.py