Towards quantum networks of single spins: analysis of a quantum memory with an optical interface in diamond. (28th September 2015)