Move configuration in index.html files to a RequireJS 'data-main' file.
Switch from a global variable to a data-* atribute on the document element.
Update onImage.html to match usage of RequireJS just like index.html.
Merge pull request #7 from gregturn/move-config

Move configuration in index.html files to a RequireJS 'data-main' file.
Create app package, move main.js. Extract follow module

Modularize main by extracting api and rest.js usage, twitter utils,
and image reading, follow() function, etc.

This commit also tweaks a few other things:

1. Connects previously disjoint promise graphs to allow error propagation
2. Uses jquery event delegation instead of if/then tests
3. Other minor refactorings here and there to reduce indentation, etc.

This commit doesn't deal with mobile.js. We discussed potentially
switching away from jQuery Mobile to a pure css responsive approach.