Allow AIStateMachine::kill to be called while not running.

This can be used for example when a parent statemachine has
a child statemachine and wants to kill() it upon finish.
New libcwd debug channel CAPS.
Innitial commit. Pulled minor changes out of bulk of changes comming for multi-wearables.
Interim commit before diving into reworking the inventory panel.
LLViewerRegion: WIP - header changes and anticipated compile fixes

Does not compile now.
llviewerregion.cpp wasn't touched.
Other changes elsewhere in the code (like in llstartup.cpp) might still be needed.
LLViewerRegion WIP: this should compile now.
LLViewerRegion WIP: Initial copy of llviewerregion.cpp

This is basically the changes in viewer 3 to this file,
except that I left alone:

1) We still have a cloud layer (mCloudLayer)
2) LLViewerRegion::regionFlagsToString still adds comma's
   and a lot more flags.
3) We still have the extra accessor LLViewerRegion::getNetDetailsForLCD()
4) The actual capabilities requested in LLViewerRegionImpl::buildCapabilityNames
   have been left alone and still request the same caps as before.
5) LLViewerRegion::meshUploadEnabled and LLViewerRegion::meshRezEnabled
   have been left alone. They seems to do more work in our case,
   checking if we have the capability SimulatorFeatures, and doing
   something smart when that is not the case.
LLViewerRegion WIP: Added all headers that are dragged in.

Most in particular llevents.h, which comes along with
the demand that the old events in llevent.h are put
in a namespace LLOldEvents. Made all changes necessary
to compile the rest of the code again (without changing
the actual code: it's still using the old events).

This patch also removes LLStopWhenHandled and LLStandardSignal
from indra/llui/llnotifications.h because those are
moved to llevents.h. That seems to be the only change
to indra/llui/llnotifications.h that isn't floater related,
so I left the rest of that file alone.
LLViewerRegion WIP: Use LLViewerRegion::getCapAPI

Viewer 3 uses this in LLAgent::setStartPosition and
copy_inventory_from_notecard; so I brought those
up to speed with V3.

The viewer now uses LLViewerRegion::getCapAPI in all
the same place as V3.
LLViewerRegion WIP: Sync indra/llmessage/llregionflags.h with V3

It seems a few flags disappeared; adjusted the code accordingly.
Should do the same as V3 now.
LLViewerRegion WIP: brought LLTrans up to speed with V3.
LLViewerRegion: now compiles and seems to work.
Merge remote-tracking branch 'siana/master'
Updated LLFocusMgr to use boost::signals2 instead of vanilla function pointers. Also removed top-focus handling from lluictrl because it doesn't belong there.
Inv menus appear now. Still need to update llmenugl and its variants, since our current version is buggy. Also need to look into why inventory postfixes aren't appearing.
Comment out old Google Translate support and as such remove the need for JSON.

Note that on standalone, json headers are installed in json/,
no idea why in the packages this isn't the case... But anyway,
it isn't used at all anymore now so it doesn't really matter.

I didn't remove the json package for non-standalone and the
downloading thereof... (I can't test non-standalone).
Adding to Ignore.
OS X Builds now.

Fixed building on OS X.
Fixed line endings.
Need to find better way to do fmodwrapper thing.
Added LLView::translateIntoRectWithExclusion utility function.
Updated APR and Zlib prebuilts.