Merge pull request #1139 from ryanjbaxter/master

Changes to support untrusted SSL connections for gadgets.
Handle size of OAuth dialog and allow it to be configured. Cleanup the
sample managed beans xml. Update some samples.
Merge pull request #1140 from markewallace/BetterOAuthDialog

General Cleanup