add chat box, minor lua fixes (moving blocks works), expose debug flag to lue, fix up script path and lua initialization