Moved the assertion generation into BrowserIDIdentities. Adding tests for this. Conflicts: browserid/static/dialog/controllers/dialog_controller.js