added callbacks to server.createRepo
added createRepo test