Added api Ruby files and require statements in index.html.erb.