This allow support urls ending or not with a trailing slash for most endpoints where it makes sense (thus avoiding a bunch of 301 redirect when loading the front page).
It also does a few code style changes, especially regarding indentation (2 spaces in html) and line length (80 chars).
Looks good to me :thumbsup:
Pull-Request has been rebased
Pull-Request has been merged by pingou