Layout helper improvements & documentation

- Fully documented layout helpers
- Rewrote tests for layout helpers to be more comprehensive and actually test the output.
- Fixed a few bugs in {{extend}} and {{block}} for fringe use cases.

I'm uncertain if the documentation is formatted right, but I tried to structure it the same as the other docs I found.