Add Apache2 License

Change-Id: Ifc35e3c6a479d49579affd1173f2a346c2ff0f49
Setup generator as a script by itself

Change-Id: I8d204d96bcb4d1ff63fa9e1c3d7c502b2716b7ac