A Swindon drug dealer who mounted the pavement in his car, smashed into parked cars and a wall narrowly avoiding crashing into police officers has been jailed.