Rewrote widget layered nav to use class instead of id

Now it is possible to use multiple layered nav widgets of the same taxonomy on the same page.

See also issue #6018