Twig usage cleanup

- use raw filter instead of autoescape blocks
- break up startElement macro for better reuse of <li> handling
- unrelated variable renaming in templates/apply.php