Make Foundation's topbar support Turbolinks

This PR does a couple things to the Foundation topbar:

1/ Convert jQuery .live() calls to .on(), because live is deprecated.
2/ Detach and re-attach topbar's event handlers when Turbolinks is changing pages.

I had to shuffle some initialization code around. Let me know if there is anything you'd rather this PR do differently and I'd be happy to change it.