Added preliminary code for putting internal headers into TOC.
Added internal headers to book TOC.