Add table of contents

The reference document is quite large; a table of contents would help readers navigate and find topics. (TOC was generated via [DocToc](http://doctoc.herokuapp.com/))
Move TOC below main title and make it horizontal
Merge pull request #1064 from brianpeiris/patch-1

Add table of contents