Rewritten core to be a coremod.

Third party libraries are now downloaded automatically.
Some work on link tool.