Move index to views/index.erb
Extract common HTML into layout file