Lots of cleanup and fixes.
Adds bootstraping setup script.