Newport County's final-day win to seal League Two survival was the latest escape act from a club with a history of drama.