Implemented header collapsing.

Clicking on a header will hide the content within it.
Merge pull request #209 from xiamx/master

Implemented header collapsing.