Fix crash when previewing an animation.

When uploading an animation, playing the to-be-uploaded
animation on ones own avatar while ground sitting would
crash the viewer.

This fixes that, and makes the avatar cleanly stand up first.
Rationale: the alternative is to make the user learn by
means of crashing, being frozen or just not seeing the right
animation that they have to stand before uploading an animation.
There is no reason not to automate that.
Missed a SHGetSpecialFolderPath call.
Texfetch/cache changes:
Added SEND_UDP_REQ and	WAIT_UDP_REQ fetch states.
Parse 'content-range' from headers.
Purge 'complete' textures from the cache if they lack 'end of codestream' marker.
Added boostlevel/category to textureview display.
More diagnostic output.
Discard handling tweaks/bugfixes from v3.
Merge branch 'master' of git://github.com/AlericInglewood/SingularityViewer
FOLDERID_LocalAppData should have been FOLDERID_RoamingAppData
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
ilu gcc (fix preprocessor macro typo that VS thought was dandy for some reason.)
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer