Fixed event's target ID retrieval

In some situations event.target might not be an actual DOM node.

Fixes bug 2944.
When loading hash URLs, default to no filtering

If a hash URL didn't have an explicit filtering option set and there was a
previous filtering criterion set, it would keep the old one.

Fixes bug 2945.
Styling correctness