Code cleanup, update for new manifest guidelines.

Code cleanup, updated manifest, moved JS sources out of their HTML pages
for easier readability, deugging, and syntax highlighting. Also switched
storage over to sync instead of local.

Aside from the sync modification, all functionality should be exactly as
the original extension was.