Bar: added support for old Nette\Diagnostics\IBarPanel [Closes nette/nette#1484]
improved adding/removing classes in JS [Closes #33]