Substantial rewrite including Universal Analytics support and yml config

There are some big architectural changes here. Just let me know if you'd prefer this to be it's own module. I'm happy either way.