Added compatibility with Pebble.JS
Added compatibility with Pebble.JS

Corrected typo on `crypto` definition
Added detection of Pebble.JS using `Pebble` object
Added handling of `md5` and `ajax` on Pebble using `require`
Added AJAX calls using Pebble.JS's `ajax` library

Fixed some miscellaneous syntax errors highlighted by CloudPebble
michaelday/rtm-js