libtorc-core: Add DisplayDeviceReset action
libtorc-baseui: Guard against repeated calls to InitialiseShaders
libtorc-baseui: Guard against repeated calls to InitialiseView
libtorc-baseui: Add refresh rate handling for windows
libtorc-core/videoui: Handle DisplayDeviceReset action
libtorc-baseui: Handle direc3d9 device resets

- add checking of device state before rendering
- refactor code to avoid duplication
- release all resources when reset detected (NB shaders do not need to
be recreated)
- reinitiliase certain state after reset

Not working correctly in all cases (video corruption after reset -
texturing??)