Several fixes; introduce storage Lua binding