Merge pull request #28 from Pie-Studios/master

Lets finish devtools now
Lots of work

- Renamed delegateEvents to propagateEvents
- Started on mapeditor, working image importing with background and
foreground
- Removed complex UI Ids, no longer have ui.button prefix
Corrected InstanceToScreen and ScreenToInstance functions
Rendering additions

- Added FillRectangle and DrawRectangle
- Annd other stuff
Grid scrolling, tile highlighting, console
Added new commands, added extra cmd handling for console
Fixed some CfgVars
ToString for CfgVarValues
Proper resizing for overlays & windows on game resize

- Added WindowResize event in Engine.cs
- Changed UI code to calculate Pixel <-> Screen with backbuffer info
- UIOverlay calls Recalculate on Window Resize event etc
More work on DevTools

- Logger now has *mode*F function when logging without Area
- ConsoleWindow has clear & cls commands(not exposed as Command)
- Graphics.GetDevice() to Graphics.Device attribute
-
Fix console toggling when not possibly visible
Added VLine and Line rendering
Renamed geometrical figures, added Polygon

Intersection in the works
Changed Events, created Win32 for imported functions
Added polygon collider, started on Builder saving
Non-working export code, but exporting nonetheless!
Proper tile numbers when exporting
Added handling for multiple ResourceManagers
Place and draw collisions in DevTools
Renamed to Collider2D, importing for 2D worlds