luaengine: add API versioning

These commits add two methods to LUA interface, allowing scripts to
programatically retrieve current running application name and version.
The idea is to make scripts aware of changes in the API, by
linking it to current version number. Compatibility helpers can then
be added to LUA scripts to keep them working across API changes.

Signed-off-by: Luca Bruno <lucab@debian.org>