moved endpoint.lua, agent.lua, and errors.lua from virgo to virgo-base