Ported to PebbleSDK-2.0BETA7

Learning PebbleSDK2.0 but port other people's code. enjoy...