Minimal trait and lua-code-injection support. Also some conceptual extensions