Added a script for building and distributing without eclipse!

Also many changes. Everything seems to work now. Haven't tested too
much!