refactor `conair build` to create images with layers

moved layer handling to separate package and refactored `conair build`
and the nspawn package.