Added $config variable to migration script

Migrations are now able to read $config - this makes it possible for the developer to pass values to the migration script