Move mouse hacks into its own file.

Make the modeline simpler and not as fancy.