Extended app_event_loop to reflect Pebble Kit documentation of
app_event_loop.
Changed time functions to use standard time structures.
Added string_format_time.