Lua data server refactoring. No can reconnect

Signed-off-by: patch_ua <patch_ua@ukr.net>