Added rails and refactored html to public folder.