extract partials and helper methods for reusable (or overridable) elements of the default blacklight layout

fixes #838