Fix bucket reclamation.

The bucket page is allocated separately from the rest of the pages but the old bucket pages were
not being added to the freelist. This change fixes that and adds a simple check for database
consistency. More advanced consistency checks can be added in the future.

Fixes #82.
Merge pull request #90 from benbjohnson/fix-bucket-reclamation

Fix bucket reclamation