Update ConfigSerialization.java to use Hashing

Also add a hashing class