Added lua plugins and implemented logger as plugin