Fix sha3 encoding and replace ethcore with new classes