Pep style fixes for admin, ajaxapi and publicapi