Move scripts from body to head. Load asynchronously.

Based on best practices described here: http://stackoverflow.com/a/24070373/935514
Move Google Analytics tracking code into config.