Added more methods to blockchain.go

Restructured blockchain a little bit to help with common methods
Merge pull request #1 from jimmysong/work

Added more methods to blockchain.go