Add support for "preswitch" scripts

This allows for things like adding modes for monitors that xrandr doesn't detect correctly.