added support for inline scripts

The `x:script` element can now be used as an alternative to the `script` attribute.
Merge branch 'inline-script'