Fix the irc_reply event for several server message types.
Merge branch 'master' of ssh://git.bro-ids.org/bro
Fix build on FreeBSD.

basename(3)/dirname(3) const-ness may vary w/ platform.
FreeBSD build fix addendum: unintended variable shadowing.
fix memory leak in input framework.

If the input framework was used to read event streams and
those streams contained records with more than one field, not all
elements of the threading Values were cleaned up.

The reason for this is, that the SendEventStreamEvent function
returned the number of record elements in the outmost record
instead of the number of unrolled elements in the whole vector.

This number is later used to determine how many objects to delete.

Also - add a whole bunch of leak checks for the input framework
that would have caught that and should cover quite a number of
use-cases.
Fix unlikely null ptr deref in broxygen::Manager.
Close signature files after done parsing.
Updated software framework to support parsing IE11 user-agent strings.
Fix table &default reference counting for record ctor expressions.
Several fixes for input manager error handling.

- First:
Due to architectural constraints, it is very hard for the
input framework to handle optional records. For an optional record,
either the whole record has to be missing, or all non-optional elements
of the record have to be defined. This information is not available
to input readers after the records have been unrolled into the threading
types.

Behavior so far was to treat optional records like they are non-optional,
without warning. The patch changes this behavior to emit an error on stream-
creation (during type-checking) and refusing to open the file. I think this
is a better idea - the behavior so far was undocumented and unintuitive.

- Second:
For table and event streams, reader backend creation was done very early,
before actually checking if all arguments are valid. Initialization is moved
after the checks now - this makes a number of delete statements unnecessary.
Also - I suspect threads of failed input reader instances were not deleted
until shutdown

- Third:
Add a couple more consistency checks, e.g. checking if the destination value
of a table has the same type as we need. We did not check everything in all
instances, instead we just assigned the things without caring (which works,
but is not really desirable).

This change also exposed a few bugs in other testcases where table definitions
were wrong (did not respect $want_record)

- Fourth:
Improve error messages and write testcases for all error messages (I think).
Minor Broxygen improvements, addresses BIT-1098.

- Internals: move type alias table to private static BroType member.

- Sphinx extension: now uses absolute path to bro binary.

- reST ouput formatting: remove "param" from function desriptions
  and change package overview docs so script link+summaries render
  consistently.
Merge remote-tracking branch 'origin/topic/jsiwek/broxygen'

* origin/topic/jsiwek/broxygen:
  Minor Broxygen improvements, addresses BIT-1098.

BIT-1098 #merged
Merge remote-tracking branch 'origin/topic/bernhard/ticket1103'

* origin/topic/bernhard/ticket1103:
  fix memory leak in input framework.

BIT-1103 #merged
BIT-1095 # Add to 2.2.1
Merge remote-tracking branch 'origin/topic/seth/ie11-software-parsing'

* origin/topic/seth/ie11-software-parsing:
  Updated software framework to support parsing IE11 user-agent strings.
  Fix the irc_reply event for several server message types.

BIT-1104 #merged
Merge remote-tracking branch 'origin/topic/jsiwek/misc-fixes'

BIT-1105 #merged

* origin/topic/jsiwek/misc-fixes:
  Fix table &default reference counting for record ctor expressions.
  Close signature files after done parsing.
  Fix unlikely null ptr deref in broxygen::Manager.
  FreeBSD build fix addendum: unintended variable shadowing.
  Fix build on FreeBSD.
Updating submodule(s).

 [nomail]
Merge remote-tracking branch 'origin/topic/bernhard/input-error-fixes'

* origin/topic/bernhard/input-error-fixes:
  Several fixes for input manager error handling.

BIT-1106 #merged