Bootstrap

Assorted profile/config fixes to bootstrap the SDK from scratch. The commits should explain the changes reasonably well.