Feature/service cleanup

Code to clean up old out of date services, I think this probably needs some testing before inclusion. However it will take a while to test since the timeout is 1 week.