add web API to generate random invitation codes
update frontend to generate random codes