Stochastic Analysis of Maintenance and Routing Policies in Queueing Systems