Add support for pause on screen lock

Fixes #154. This adds support for pausing Hermes when the screen locks and resuming when it unlocks. The implementation is an exact copy of the pause on screensaver system with the trigger events changed. If you want I can try to reduce the size of the diff on `MainMenu.xib`, but manually hacking at Interface Builder files is a pain.