Use applicationWillResignActive: to dismiss interface.

Wayy less hacky. Fixes #6.