Replace Cubescript by Lua + improve messages module