Unify snippet in head, defer till DOM ready.

    * Adding @shane-tomlinson's awesome work from
      https://gist.github.com/shane-tomlinson/5884391
    * Instead of a two-part snippet, move the whole thing into the doc head
      and wait to append the async script tag until the DOM is ready.