Clear the command queue after flushing statemachines

Flushing the state machines can cause remove commands to be added to the
command queue, so clearing it needs to be after.
Fix deinitialization order fiasco.
Don't show Paste As Link when Paste As Copy is shown enabled because it'll just be disabled in these cases.
Don't leave Group Copy check enabled unless we have trans and copy perms.

Also some code consistency chages that won't change anything.
Satisfy Issue 271: Fly after teleport feature.

Add debug setting LiruFlyAfterTeleports
Add Always fly after Teleports to General tab of System preferences.
(Also, fixed tabs where spaces should be in settings.xml)
Satisfy Issue 167: Ability to set global "add instead of wear" option in prefs

Adds debug setting LiruAddNotReplace.
Adds "Add clothing and wearables instead of replacing them" to Main (General) tab of Vanity Preferences.
Fix an issue introduced in V2MultiWear in which double-clicking or hitting an enter on a worn wearable would rewear it, not detach it.
Fixup scroll list column header resizing.
Unified moon/star rendering to share same shader. Also now actually using deferred shader when performing deferred rendering.
Cheapo sun bloom contribution in deferred.
Satisfy Issue 476: Option to mute gesture sounds

Enable Gesture Sounds checkbox added to Adv. Chat->Spam tab.
Retain shader error logs across entire session.
Obsessive excessive clearing of glow rendertargets, as they still occasionally act weird.
update spanish translations
Satisfy radar issues: 51(Avatar Age), 382(Time duration), 245(Hide columns on command)

Overall:
Extras tab added to radar.
Activities given tool_tip strings, TODO: Get icon entries to have tool_tips.
Added tab_min_width="0" to tab container so tabs take up only as much space as necessary.

Issue 51:
RadarAlertAge, AvatarAgeAlertDays debugs added.
RadarTextYoung color added to colors_base and gemini.
UI bits added to radar.
ALERT_TYPE_AGE, LIST_AGE, and boost::lexical_cast added.
LLAvatarListEntry is now derived from LLAvatarPropertiesObserver for processProperties and all that fun stuff. Also has mAgeAlert and mAge.
processProperties is basically copied directly from LLAvatarPanel, it can probably be bettered.

Issue 382:
mTime, getTime(), LIST_TIME
Time column.

Issue 245:
Hide columns text and checkboxes added to UI.
assessColumns() now used to determine which columns to show. Also once used during postBuild()
col_helper() function added to help decide to hide or resize a column based on given params.
checkboxes all use assessColumns as callback.
RadarColumn* debug settings added.

If you read this all, that's a sign the 'pocalypse is coming.
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
Merge branch 'master' of https://github.com/DamianZhaoying/SingularityViewer
Use boost::date_time for displaying avatar age.

llpanelavatar change may be better viewed without space changes.
Fix a windows compiley thing.
An hour is not a circle.