Added auth for ajax, some apis for competitions.