added visual feedback for user editing a document or edge
jslint fixes
 merge