Added better debug info for the memory pool

Added improved the blockchain method isSpent to include an optional confirmation argument

Improved the logic in the post algorithm to not post as longs as no peers are available
Merge remote-tracking branch 'origin/master'