Improved design of the deviation view - now with left border and hide/show functionality

Also featuring a recursive template! Ping @jsuereth