Fixed widget groups and WordPress 4.1 compat

Fixed widget groups in add widget dialog. Also added WordPress 4.1
compatibility so it works with the new way tabs are laid out.