Create ccrc API.lua

these are APIs used by both client and server.