Change in attach/init function signature. Pass plugins object in explicitly rather than assigning to 'this' as in broadway-style plugins. Attempt to detect broadway-style plugin attach/init function signature for compatibility.