Add support for parted flags to partitions

This is based on top op #26, so that one needs to merged in first.
thanks for spotting this. check the last commit for what i really meant ;)