Set up apiController and repository + restructure some MongoDB fields and URI generation