Updated changelog
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.
CHANGELOG fix, and some comment cleaning
Fixing typo
Merge overlapping boxes
Merge box optimization
Log file fixes

- Fixing log_type read from config
- Fixing showing TYPE_ALL messages
Get a version number from git when used
Removed mmx code

Looks like gcc -O2 optimize it out anyway (?)
  I dont notice any more cpu usage without it, on a modern CPU.
Remove unnecessary calls when running with motion detection disabled.
Added /json to config web interface, so it is easier to parse.
Slow down dynamic update of reference frame, saves some CPU when no motion.
Dont do pointless calls to alg_labeling
Stop some function calls if motion detection is disabled, and not in setup-mode