Move the Lua code to a designated file.
Add protobuf constants.