Cherry pick changes from Joakim Pedersen and Joakim.
* Count webcontrol as a thread to avoid a crash
  On a SIGHUP restart the main thread waits to restart until all worker
  threads are finished executing, except webcontrol wasn't included.
  If it was still running (such as reading a web request), it would
  have a dangling context pointer after cnt_list was freed leading to a
  crash.  This counts that thread in the running threads, as a
  termination webcontrol_finish variable to terminate it indepdent of
  the device thread, and creates a webcontrol_running to identify when
  it is running.
* Set motion capture thread running in the main thread
  I identified this while debugging, the thread was created, but hadn't
  yet set its state to running before the main thread check the running
  variable and started another thread for the same device.  That
  resulted in a crash.
* Removed MMX code
* Remove unnecessary calls when running with motion detection disabled.
* Change loglevel and logtype while running
  - Possible to change loglevel and logtype on the run.
  - Also possible to select multiple log types, not just one or all.
* Moved some netcam logging to DBG level.
* Log file fixes
  - Fixing log_type read from config
  - Fixing showing TYPE_ALL messages
* How labels work
  - Store center of each label larger than threshold.
  - Draw labels on pictures if cross or redcross is used.
  - Draw boxes around each label, not just largest.
  - Merge overlapping boxes
* Dont do pointless calls to alg_labeling
Just updadte WiKi URL 's/twiki/foswiki/g'
Fix removing *BSD stuff
Get version from dmiter GIT history based on original 3.2.12