Update main and text_init functions

updated main and text_init functions to use SDK 2.0 calls
changed to the new #include <pebble.h> and #include <time.h>