add api environment init
add api dir
minor midify about frontend
remove cache config
go ahead of backend
clear inited rbac config first.