Clean up mutation observers. Fix transient registered observers never getting removed. Remove lodash dependency in mutation observer code.