luaengine: add API versioning

This commit adds 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>