Refactoring, CoreBitcoin, Unit Tests (closes PR #9)