Table caption for html, latex and pandoc

CF. https://github.com/yihui/knitr/issues/657
Merge pull request #687 from larmarange/table_captions

Table caption for html, latex and pandoc