added api projects, added headers to api, approached dlgcode references in random.c and password.c