DroidPlanner: Changed the way the polygon points are added.
When adding a point now it gets added between the two nearest points
DroidPlanner: Small change in the way a new point is added to a polygon.
DroidPlanner: Changinng the variable containing the mode state to the main class, extraction from a sub class
DroidPlanner: Changing the menu system
Now when in polygon mode show only polygon functions in the menu.
DroidPlanner: Finishing modification to menu system, forgot to add these files in the last commit