tidied deploy rake tasks, and added repository validation