Update to compile and sometime run under pebble 2.0

Jon I merged in the work of Belphemur and got it to compile and run most of the time. Sometimes it will not initialize correctly and crashes, also I broke the handler on saying yes to exit. I hope this helps you make it cleanly in 2.0. Have a great holiday season.