Fix some namespacing stuff, and a few other JS breakages.

This is a rebase of [PR 1201](https://github.com/imathis/octopress/pull/1201) to work against current 2.1 head.

* Fix a slew of namespacing-related issues.
* Skip spurious and wacky appId on FB integration.
* Fix a minor JS bug in `flashVideoFallback`.