Navigation: loadPage: Do not examine member variables of parameter opts before having established opts is an object.
Button markup: Allow reading of DOM attributes from $.fn.buttonMarkup to retain backwards compatibility.