Remove trailing whitespace/fix indention according to current emacs-mode.
Make supervisor exit reasons more specific.

This patch changes the behaviour of supervisors to exit with
a more specific reason when a child process exceeds its maximum
restart intensity. E.g. a supervisor will now exit with
{shutdown, {reached_max_restart_intensity, Child}} if a
permanent or transient child cannot be restarted any more.