HashId::fromHexString() optimized.

Replaced stringstream method with one based on stoul. Also tried to go for bigger portions in the while loop but that seems to mess up the endianness, so I abandoned that without giving it too much thought.
can we now remove the sstream header include?