Breadcrumb improvements

I have made some improvements to the breadcrumbs on a number of pages to make the page hierarchies more clear and cleaned up some of the JavaScript, namely moving addClass/hasClass/removeClass into a common js file.