Refined opening Pebble Applications.
Switched to thread local Application Context, removed all non thread local variables or moved them into the Application Context.
Some remnant debug stuff is still in setupGState, working on the graphics backend soon.