Merge pull request #976 from dorkster/fixes

Fix class equipment not being applied correctly
Fix cond jump on uninitialized var.
Dont recreate title LabelWidget on each render.
Dont recreate label on each render.
Prevent creating label on each render in WidgetSlot
Dont create new WidgetLabels on each render()
Run indentation script.
Don't create a WidgetLabel on each call to render()
Remove init of shared icons resources from RenderDevice.
Added a SharedResources class with static init functions.
This is a part of issue #969
Reload icons after recreating render context