Shell script version of softshut

From: The Embedded Code
http://embeddedcode.wordpress.com/2013/10/18/adding-a-shutdown-button-to-the-raspberry-pi/
Adapted to use GPIO pin 7.