configure.ac: Added module listing in configure
configure.ac: Added luajit support for lua module.

It can be enabled by adding --enable-luajit to configure.
It is disabled by default.
Merge pull request #11 from talien/feature/luajit

Support building against LuaJIT, instead of normal Lua.
configure.ac: Enhanced configuration status reporting

Print all modules in the configuration status report at the end, and
instead of printing the lua library we'll link against separately, list
it after the lua module status.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
lua: Factored out checking of global variables in state.
lua: Created convenience library from lua utility functions.
monitor-source: Added monitoring source.

Monitor source is a new source mixing the capabilities of a Lua-based
driver and the trigger source. It is periodically executing a given
Lua function. If the function returns a string, a new message is created
which contains this string as the MESSAGE part. However, when a (non-nested)
dict is returned, the key/value pairs of the dict is added as name-value pairs
to the newly created message.
Merge pull request #12 from talien/feature/monitoring-source

monitoring source
monitor-source: Only build it when Lua support is enabled

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
configure.ac: Print the status of the monitoring-source too

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
monitor-source: Fix a compiler warning

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
README.md: Add a note about the monitor-source

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
README.md: Update the legalese

Viktor Tusa contributed a significant amount of code, recognise that by
adding him to the top-level author list.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
lua-dest: global configuration now stored in a "hidden" variable in lua state.

It will be needed for some Lua-wrapped object, and the only place,
where it can be stored is in the Lua state.
lua-dest: Message class name moved to header.

It will be needed in template wrapper.
lua-dest: Added Template class.

Template class is a wrapper over syslog-ng LogTemplate struct.
It allows templating in raw mode, and it allows to create multiple
template instances per lua destination.

Example usage (raw mode):

function init()
  template = Template.new("${MESSAGE}")
end

function queue(msg)
  print(template:format(msg))
end
Merge pull request #15 from talien/feature/lua-template

lua: add a LogTemplate wrapper class to be used in raw mode
lua-dest: Added deinit function for lua destination.

Added new deinit-func() parameter, in which we can specify a
function name which is called during destination driver deinitialization.
Merge pull request #16 from talien/feature/lua-dest-deinit

lua-dest: Added deinit function for lua destination.
.travis.yml: apt-get update before installing curl

Signed-off-by: Gergely Nagy <algernon@balabit.hu>