Added restaurant list api. And did some refactoring.