move twitter js to the layout

This fixes broken "follow" button on the show page
refactoring footer, part 1
refactoring index page
footer refactor, part 2
add some mediaqueries and filters polyfills, Safari i hate you