Add support for parsing hooks

This is a bit of rejiggering for basic support of parsing hook docblocks.

Relationships are made between hooks and the functions they live in.
Because of their similarities, both functions and hooks use the sample template function in my implementation.