IdP error events

There's currently no way to learn of problems with the IdP processes.  This adds two error events that cover generation and validation separately.

This depends on #11.  It's based on by feedback in http://lists.w3.org/Archives/Public/public-webrtc/2013Dec/0104.html