Moved database initialisation into the init() method.

Implemented the hook system for the Migrator class.

Any class can now register a callback for any hook in the Migrator class.

Updated README.