A bunch of multi-select features and fixes

I hope these finally work. I've tested:

* Longer source files
* Long lines in source files
* Source files with and without panel overlay
* In chrome and firefox