New system bootstrap code

@thatch45, I think there's a lot of overlap here with the current `img.bootstrap` function, but I think they can be merged together. This pull req will put it out there for others to be able to work on it.