Changes to normalize behaviour in Firefox

Work in progress. Already spent waaaaaaaaaaaaaaaaaaaay too much time on this :)

The crux of the issue:

1. focusout was not handled in the select editor "base class". 
2. focusout behaves differently in Firefox - relatedTarget does not work at all in FF for that event.
3. select2 has it's own internal event system that wraps around regular DOM events and it's probably safer to use those, if only they worked the same way I expected

To be continued