Create swag.as, an Actionscript implementation

This should close issue #6