Bitname Fork Fixes

- calculate difficulty of forks using median of window to fix outlier
  problem.

- fix race condition when replacing the head block and I attempted to
  apply the block twice.

- updated comments on warning message to discuss why it might happen.