Add script to create extension from unpackaged.

And fix the installation of upgrade files to be installed in the correct location.