Start rewrite of js2lua.

It was just too fragile :/