The future of Ayr's Gaiety Theatre is secure for the next three years after a major funding boost, according to its executive director.