How to put spark core to sleep and wakeup on interrupt signal on a pin?

Thanks @ScruffR for the help. I will assume the wakeup by pin in deep sleep will not work.

Suggested Improvement: A statement on the docs.spark.io/firmware page to that effect would be a good help to other users.