Generic mount framework and mount_to_var mountspec parser function

These commits add functions to create fstab-like files that will be parsed in the pre-mount (and pre-pivot) phases.