Improved breadcrumbs

Separated/removed the breadcrumbs logic from render_breadcrumbs()
function and moved it into another function, render_breadcrumbs() is
only meant to provide a way to build up the markup rather than do the
logic calculations behind breadcrumbs.