Add before_format hook.
Merge pull request #59 from i0rek/before_format

Add before_format hook.