django-experiments and javascript

These changes make it easier for javascript programmers to change javascript based on the state of a running django-experiments.  There are also some hooks for sending information about the running experiments to a service such as google analytics or optimizely.