refactored code of plugin

• renamed content to _element where appropriate
• refactored newsletter_detail to create instance statically
• made subscriber_group_input groups call async
• general cleanup of code