controller: Add redirect() and add some additional comments.