Updates to circumvent YQL issues.

*Reissuing this pull request - didn't realize that I hadn't squashed all of my commits the first time (I'm a commit-aholic). You can delete the first one.*

Well, this might be a bit unnecessary now if the YQL stuff is now working and the API additions are coming soon, but it's here if you're interested. This change has the potential to slightly improve performance by removing YQL and reducing the number of AJAX requests, but it might be negligible.

Your file reorganization makes it look like this pull request is more disruptive than it actually is - the only two files I actually modified are `manifest.json` and `functions.js`.