Remove all old console log statements and some dead code.