Cleanup. Remove some C++/lua code duplication (keep the lua version). Prepare to optimize action-context's.