Write 'ccode generate' command and add permissions to other stubbed out commands. Some other changes