Merging it would take more time (or less) then building a Custom Auth from the start.... Make a custom one instead.... It's not worth it.
Use some glue, and probably some magnets. Why do you want to make a "core" plugin at all? It doesn't affect anything except what is displayed in /plugins and QueryRegenerateEvent...