modified rb files to deal with appid, fixes small loggin bug in ccc.js.