Added clearGroup and removeObject functions (API and viewer).
Renamed figure and clear to newFigure and clearFigure in API for clarity
Renamed connect and disconnect to beginDrawing and endDrawing in API.