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

These are compatibility changes only.
Updating CHANGES and VERSION.
Fix checking of fwrite return values
BIT-1280: Fix checking vector indices via "in".

$ cat test.bro
local vec: vector of string = { "zero" };
vec[2] = "two";
print 0 in vec, 1 in vec, 2 in vec;

$ bro -b test.bro
T, F, T
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 segfault if when statement's RHS is unitialized.

If it is ever assigned a value, the body of the when can be triggered as
usual.

Addresses BIT-1176.
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.
Merge remote-tracking branch 'origin/topic/jsiwek/bit-1280'

* origin/topic/jsiwek/bit-1280:
  BIT-1280: Fix checking vector indices via "in".

BIT-1280 #merged.
Merge remote-tracking branch 'origin/topic/jsiwek/bit-1176'

* origin/topic/jsiwek/bit-1176:
  Fix segfault if when statement's RHS is unitialized.

BIT-1176 #merged
Adding call to new binpac::init() function.
Updating submodule(s).

 [nomail]
Updating submodule(s).

 [nomail]
add new curves from draft-ietf-tls-negotiated-ff-dhe
Updating submodule(s).

 [nomail]
Merge remote-tracking branch 'origin/fastpath'
Merge remote-tracking branch 'origin/master' into topic/vladg/kerberos