Renamed set.js to migrationSet.

Added a migrationSetFactory to create the migration set and add the event handlers.