add metadata and clean up content

Add schema.org, dublin core, and open graph metadata to the head element to support richer representation in search engine results, facebook/twitter links, and Zotero citations. Fix some problems with indenting and tag closures in the body.