Separate nsinit main from implementation

This is done in order to package nsinit as part of docker binary.