Added BasePlugin.extend to support earlier versions of DocPad