PLD: remove api code from main
PLD: remove references to api in tests and urls