A versioned storage API for Lua