Refactored stuff into PersonaIDP and utils.
Added examples.