function createButton(text, status, primary) {
					return {
						type: "button",
						text: text,
						subtype: primary ? 'primary' : '',
						onClick: function(e) {
							e.control.parents()[1].close();
							callback(status);
						}
					};
				}
Constructs a new message box and renders it to the body element.

@static
@method msgBox
@param {Object} settings Name/value object with settings.