Make uberjar possible. Also allow origin null, i.e. local file system.