Moved difficulty target calculation code into Bitcoin-Ruby.