iOS implementation

This PR gets the iOS version working, to the point where the android one is,  except for custom icons in the pop over window.

I cleaned up the code a bit to use the new plugin signature.