MDL-37977 Moved HTML from index.php to course renderer

- created functions core_course_renderer::frontpage_summary() and core_course_renderer::frontpage()
MDL-37977 minor improvements to frontpage renderer

- separated content of the frontpage news in its own function frontpage_news();
- coding style improvement
- editsection does not offer to choose a name for frontpage because it is not displayed anyway