Added view hide and view show commands;
Added node rename and edge rename commands;
Extracted common code into some utility classes

Change-Id: I4c91b192b0abe91e67830357bc840de1e198c160