Fix errors/warnings when compiling with -std=c++11

These are compatibility changes only.
Updating CHANGES and VERSION.
Fix checking of fwrite return values
Merge remote-tracking branch 'origin/fastpath'

* origin/fastpath:
  Fix checking of fwrite return values

Some didn't look quite right so fixed while merging: the return value of
fwrite is in terms of number of objects written, not number of bytes
written and some calls still mixed those up.
Fix some minor Coverity Scan complaints.
Add configure options to fine tune local state dirs used by BroControl.

--logdir: logs produced at run time
--spooldir: other data produced at run time
--localstatedir: contains spool or log dirs if those options aren't set

Addresses BIT-1166.
Merge remote-tracking branch 'origin/topic/jsiwek/bit-1166'

* origin/topic/jsiwek/bit-1166:
  Add configure options to fine tune local state dirs used by BroControl.

BIT-1166 #close
Allow arbitrary when statement timeout expressions

BIT-1284 #close
BIT-1283: Fix crash when using &encrypt.
Fix a logic bug with handling quits after the cleanup.
Update baselines.
Merge remote-tracking branch 'origin/master' into topic/vladg/mysql