Introduced features.js and removed old change type detection code.