Initial merging of upstream changes. Does not compile yet
Current todolist

1. Re-add freecursor.
2. Fix textedit stuff to not use that cooked value, and figure out g3d_input and how to bind that to UI
3. Port UI and HUD stuff to the new rendering pipeline
4. Make sure everything still kind of works properly
move resetgl and renderbackground back to main.cpp and attempt to port them to the GLemu
attempt to readd free cursor
attempt to sync UI input handling against upstream
port UI rendering to GLemu
port RPG HUD to GLemu layer; Now all that's left is to get it building again!
fix build for Linux
update windows project file
update lamiae.sh
fix minimap orientation
fix showselgrid
fix free cursor modes
fix badge dimensions
fix UI rendering and remove removed colorbits option from the options menu
fix cutscene rotation container
fix GUI textinput
update readme
fix invalid operations errors for modelpreviews
Merge branch 'upstream03302013'
Seems stable and functional enough now
fix loopdir