Implement SD enhancements, mostly for ext4

This is a PR to follow guidelines found in #21.

It is not intended for direct merging, but more for discussing issues around it.