README code blocks and structure

Put HTML code blocks in the README so that it wraps the code in a box and does syntax highlighting.  Also tweaked the headings for consistency.