Streamlined Flash security configuration.

Also deprecated the `trustedOrigins` and `allowScriptAccess` configuration
options.

Fixes #241.
Fixes #257.
Fixes #305.