Basic context management in app delegate.
Actually implement p1_free options.
Preview callback; render to IOSurface.

Really need to get rid of OSX specific stuff in video.c, though.
Preview window and view.