Added basic edge adding feature and associated states for adding edge mode, etc.