Added signing and refactored some of form example.


Former-commit-id: f8b1ba24fa5abd74d8081c34d98e3d3379748955
Merge branch 'refs/heads/master' into vic/sig-revisions


Former-commit-id: 742889b5631b2eeb5643717e7851f8ccd1d0ca45