Bug 1019816 - Logshake

Add a developer option to store logcat to sdcard by shaking the phone.
Isn't there an event based way to perform this? I see wake/sleep events in screen_manager.js. I think it would be better than polling. And in gecko we have a similar screen-state-changed observer that can be used.