Start of the api.
Move api post handlers so they don't conflict.
Start moving some of the dynamic bits.