Borrowed several utils from p2pool to support merged mining in powerpool
Adds darkcoin hash utilities, removes some unneeded code