unix socket: implement command-list command
unix runmode: add 'pcap-current' command

This command outputs the currently processed file name or 'None'
if no file is currently processed.
suricatasc: factorize code and use dynamic commands

This patch factorize the recv code and uses the new 'command-list'
to get the list of existing commands from suricata. This allows
suricatasc to be able to call any new command if this command does
not require an argument.
suricatasc: add readline completion
suricatasc: display command list
unix socket: add 'version' command
unix socket: add 'uptime' command

This command displays the nuber of second since the start of
Suricata.
unix socket: add 'runnning-mode' command

This command displays the active running mode ('autofp' for
example).
Add function to display current capture mode

This patch adds a function to display the capture mode.
unix socket: add 'capture-mode' command

This patch displays what capture mode is used.
unix socket: add 'conf-get' command

This patch adds a 'conf-get' command which get the configuration
value from suricata. Argument of the command is the name of the
variable to fetch.
The command syntax is the following:
{
 "command": "conf-get",
 "arguments": { "variable":value}
}
suricatasc: real cmd line parsing and verbose mode

This patch adds commandline parsing and help to suricatasc. It also
adds a verbose mode (-v) where the send and received JSON object are
shown. This should ease development of unix socket client.
unix socket: add 'help' as alias to 'command-list'
suricatasc: treat old server case

If the server don't have the 'command-list' function, suricatasc
was failling. This patch fixes this issue by adding a static list
instead.
suricatasc: improve output of command result
unix socket: add 'dump-counters' command

This patch adds a 'dump-counters' command which answer an output of
all performance counter.
suricatasc: refactor as a class

The goal of this commit is to be able to use suricatasc has a library
and and program. This is done by putting all active code in class and
adding a Python magic to detect when file is used as a program.
suricatasc: update python packaging

'make install' install now suricatasc script and Python module to
the system. The suricatasc client module can now be used in other
Python projects by using 'import suricatasc'.

A transformation was needed for distribution of a module and a script.
Module in src directory is now containing most of the code and the
script only handle argument parsing and the creation of a unix socket
client through 'suricatasc' module.
unix-manager: fix thread killing function

The name of the thread was not searched in the correct family.

Reported-by: iswalker <mail2cissp@gmail.com>