Moved common anti-random files into api folder