No more alerts! Reference highlighting and informational tooltips instead. Small bug fixes.

This code isn't pretty. In fact, I'd call it hideous. But it seems to work, so there's that. Hopefully I'll be able to clean it up some in later commits.