Added support for google analytics.

templates/google_analytics.php:

    <?
    $development = isset($_SERVER['RUN_MODE']) && $_SERVER['RUN_MODE'] === 'development';
    $debugIP = isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] === '85.10.50.226';
    
    $debug = $debugIP || $development;
    ?>
    <script type="text/javascript">
        var asyncLoad = function(url, cb) {
            var g = document.createElement('script'),
                s = document.getElementsByTagName('script')[0];
    
            if (cb) g.addEventListener('load', cb, true);
    
            g.src = url;
            g.type = 'text/javascript';
            g.async = 1;
            s.parentNode.insertBefore(g, s);
        }
    
        var _gaq = [
            ['_setAccount', 'UA-35957232-1'],
            ['_setDomainName', 'dsl-platform.com'],
            ['_setSiteSpeedSampleRate', 100],
            ['_trackPageview']
        ];
    <? if ($debug): ?>
        asyncLoad('https://ssl.google-analytics.com/ga.js');
    <? endif ?>
    </script>