Indentation fix.
Do not use a timer for HTTP get in LLTextureFetchWorker::doWork

All HTTP timing is done by AIHTTPTimeoutPolicy.

Inside LLTextureFetchWorker::doWork when mState == SEND_HTTP_REQ,
mCanUseHTTP is true, throttling is not in effect and mURL is not empty,
mLoaded is set to FALSE, mState is set to WAIT_HTTP_REQ and
LLHTTPClient::request is called that starts the download by curl.
A call back to LLTextureFetchWorker::callbackHttpGet is guaranteed,
which causes mLoaded to be set to TRUE (HTTPGetResponder::completedRaw
calls LLTextureFetchWorker::callbackHttpGet which sets mRequestedSize to -1
(if there was an error) and mLoaded to TRUE).

Being in state WAIT_HTTP_REQ, once mLoaded == TRUE (and mRequestedSize
is -1), the different timeout errors are handled.
Avoid assertion in ~AIStateMachine upon viewer exit.

Force the state to bs_killed before clearing the list of statemachines
in AIEngine::flush().
First re-apply "SH-3941 SH-3954 FIX local appearance does not update properly"
SH-4001 FIX - made local texture loading universal.

Conflicts:

	indra/newview/llvoavatarself.cpp
SUN-57 SH-4039 FIX bake fail on non-ssb regions

We were getting the texture ID from the type,index couple, but were not
passing in index, which defaulted to 0. texture ID is available from the
texture object itself, so using that and removing the index parameter
to prevent future confusion.

Conflicts:

	indra/newview/llvoavatarself.cpp
Stabbed some blendfunc state issues. This fixes some ui flicker which popped up recently (perhaps after merging, or I just never noticed it before then)
Clamp LLMeshSkinInfo::mJointNames to a max of 64 entries. Also checking size in lldrawpoolavatar(Redundant checks added to just match similar logic LLRiggedVolume::update more closely.)
Added blendfunc checks when RenderDebugGL is TRUE.
Commented out a spammy llinfos message.
Merge remote-tracking branch 'aleric/master'
Merge remote-tracking branch 'shyotl/master'
Align whitespace with upstream in hope of avoiding future merge conflicts