Major re-write of the premake system.

Note, many (or all) projects might fail to build atm.