THINK-217-TRN

Added in a new frontend API. The implementation I think is a bit hacky. But its the only way to get reliable cross-domain support. So basically the browser includes a script on the API domain which returns a token that Adam can use to authenticate to the API. This allows us to track reliably our visitors across domains.