add sub doc support

Howdy @dizzyd, 

Please review the following commits I made in branch 'sjkaliski-sub-docs'.

184f60cb16c52d92f0ae812bb022412d86c0dc74 (2014-11-20 18:08:12 -0500)
add sub doc support


R=@dizzyd