Added functionality to server to serve the index page.