Begin extracting MPrint code to a static library.

So both the main application and iOS 8 extension can link to it.
Extract some view controllers for UI.