Cleaned up app loading, now able to open pebble applications from file menu.
Added preferences window, not functional yet.
Moving more external events into the app_event_loop. (rendering, button events, etc.)