api http json

After this branch, a working app can be started in the emulator.