To handle all the different urlcalls we should build URLhandlers
The openURL code that is currently commented out in the AppDelegate needs to be integrated
we need a model of URLHandlers that registers with the VLCAppdelegate then we can go through the list of handlers ask if they can handle the url and the first to say yes handles the call. that way internal if elses get encapsulated /* protocol VLCURLHandler { func canHandleOpen(url: URL, options:[UIApplicationOpenURLOptionsKey:AnyObject]=:) -> bool func performOpen(url: URL, options:[UIApplicationOpenURLOptionsKey:AnyObject]=:) -> bool } */
This needs to handle the callbacks from Google, Dropbox, box, open in VLC calls, coming out of the files app and callback-x urls and so on