started working on new index protocol. Also added Response class which will be used to refactor the other protocol components later on.