feat(lua): make Lua use our malloc/realloc, catch error when initializing Lua

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
expose format objects in the Lua bindings

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>