Reorganise how adminApp is setup

This puts all adminApp functions under `red/api` - making it easier to unit test individual end points.