Merge commit '83f124ba22e92972a309331a1715f46bb99bd01d' into release-candidate

* commit '83f124ba22e92972a309331a1715f46bb99bd01d':
  added a connectToContainerHost function to automatically set the URL the swf will connect to - only if the swf is hosted
  cleaned up debugging code for release candidate
  allowDomain and allowInsecureDomain
  adding browser console logs to each writeText
  allowing all security domains
  put functions above add callback calls
  callback check
  no longer loading security policy
  moving the externalinterface.addcallback functions to connect
  failed messages now properly route to MESSAGE_ERROR
Merge branch 'develop' into release-candidate

* develop:
  added logging functions
Merge pull request #17 from jstty/master

merged in changes from RC
Merge branch 'master' into develop