[app] change the app api to have an init and entry point
5 files changed