Do the admin controller authorisation checks outside the controller.

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
Move config functions closer to each other

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>