Readability and requirejs

This changes the readability function to use an algorithm W3C recommends (not sure if it's good, just seems better – e.g., uses a better measure of brightness).  Also added two readability-related functions.

In addition there's a bit of code added at the bottom to support requirejs/AMD style modules.