Added polygon drawing to drawing canvas

- can now draw polygons using the mouse
- separated FBrowser plugin into gui and non-gui parts