Add post_before and post_after hooks
Make all hooks use raw (so html can be used in the hooks). Add footer hook