Move fileclient local hashing to use utils

More memory efficient with large files-- and a central utils function. I've also changed the utils function to use an iterator instead of the while True block