Move api prefix and version into config class.