Merge commit '83f124ba22e92972a309331a1715f46bb99bd01d' into develop

* 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
added logging functions
Merge branch 'develop' into release-candidate

* develop:
  added logging functions